David Gilden wrote:
> 
> Trying to run a perl script in OSX shell, and It is not working, what am I missing?
> 
> here is what I am typing:
> > perl -e  test.pl

The -e switch treats its argument as a string containing perl code:

perl -e 'print "hello\n"'


If you want perl to run a _file_ then you don't need the -e switch:

perl test.pl


> #!/usr/bin/perl

Because this is the first line of your program you can run it like this:

./test.pl



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to