in reply to Re: Where to save perl scripts on a mac?
in thread Where to save perl scripts on a mac?

Note that perl it self won't search $PATH, so saying "perl foo.pl" will always try to execute foo.pl in the current directory.
Which is why you should use the -S switch ("perl -S foo.pl"), to tell perl to search $PATH :)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re^2: Where to save perl scripts on a mac?

Replies are listed 'Best First'.
Re^3: Where to save perl scripts on a mac?
by BUU (Prior) on Jun 28, 2005 at 19:04 UTC
    Well, I didn't know about the -S switch, but it's still clumsy to have to type perl -S in front of everything.