1st_try has asked for the wisdom of the Perl Monks concerning the following question:
I put these lines in a text editor (in BBEdit, actually). The book said to then enter the following command (I'm not sure if Schwartz meant within Perl):#!/usr/bin/perl print "Hello, world!\n";
Then, enter this command:$ chmod a+x my_program
Now I had tried running this in Terminal and it gave me this message:$ ./my_program
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Perl on OS X
by Zaxo (Archbishop) on Sep 13, 2002 at 05:46 UTC | |
by 1st_try (Initiate) on Sep 13, 2002 at 05:53 UTC | |
by RMGir (Prior) on Sep 13, 2002 at 12:16 UTC | |
|
Re: Using Perl on OS X
by Chady (Priest) on Sep 13, 2002 at 05:46 UTC | |
by 1st_try (Initiate) on Sep 13, 2002 at 05:55 UTC | |
by 1st_try (Initiate) on Sep 13, 2002 at 06:19 UTC | |
by dws (Chancellor) on Sep 13, 2002 at 06:25 UTC | |
by hmerrill (Friar) on Sep 13, 2002 at 12:41 UTC | |
by cayenne (Scribe) on Sep 13, 2002 at 09:25 UTC | |
|
Re: Using Perl on OS X
by genecutl (Beadle) on Sep 13, 2002 at 19:12 UTC | |
|
Re: Using Perl on OS X
by csotzing (Sexton) on Sep 13, 2002 at 10:42 UTC |