[Courses] [Perl] Part 1: Getting Started

Sue Stones suzo at spin.net.au
Tue Apr 5 14:40:26 EST 2005


Fazia Begum Rizvi wrote:
> 
> On Tue, 5 Apr 2005, Devdas Bhagat wrote:
> 
>> then you should try running ./hello.pl to see if it works.
> 
> 
> That worked!

I like to put "." in my path, as the fist directory to look in, to solve 
the problem of having to type "./" before everything.  Usually the path 
is set in your profile, but exactly where that is in OSX I don't know.

I usually also add a bin directory in my home directory if there isn't 
one there. I can then put in scripts that I have written.

If you find the profile there will usually be a line something like
$PATH=/path/to/somewhere:/path/to/somewhere/else

The colon in this case is a separator, and could be different.  I would 
edit this to read
$PATH=./:$HOME/sue/bin:/path/to/somewhere:/path/to/somewhere/else

sue



More information about the Courses mailing list