in reply to Re: Running Perl Scripts on a Mac?
in thread Running Perl Scripts on a Mac?

so, how would I go about finding out what's in my $PATH variable, using a one-liner?

Replies are listed 'Best First'.
Re^3: Running Perl Scripts on a Mac?
by larryp (Deacon) on Mar 14, 2005 at 22:26 UTC

    Open Terminal, and type the following at the commahd line:

    echo $PATH

    Letter case counts. :) Terminal will return a colon-separated string that contains your path information. You could put your scripts into any of the directories listed, however, I would recommend that you create a 'bin' directory in your Home directory and put your scripts there. Then, to execute your scripts, you'd type the following on the command line:

    perl $HOME/bin/scriptname.pl

    or

    perl /Users/yourusername/bin/scriptname.pl

    You can add directories to your PATH variable, but I'll leave that exciting task to you. (Hint: On the command line, type man bash.) :)

    HTH,

    /Larry