in reply to "perl script.pl args" or "script.pl args"

Most of the time i use the she-bang line, but sometimes, when testing out code here at the Monastery, it is just as easy for me to "run" the text file as an argument to Perl than it is to chmod it. A third way i have found to run Perl scripts (i think i picked this up from eduardo) is to type perl, hit Enter, paste in the code, and then hit CNTL-D. But mostly i use the she-bang line. Mostly.

While we are on the topic of running code posted here at the Monastery, check out Run and/or download code directly from perlmonk nodes. if you haven't already.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on (jeffa) Re: "perl script.pl args" or "script.pl args"