Problems? Is your data what you think it is? | |
PerlMonks |
Re: What's #! got to do with it?by hardburn (Abbot) |
on Jan 16, 2004 at 21:20 UTC ( [id://321911]=note: print w/replies, xml ) | Need Help?? |
I bet you're invoking the program on the shell like:
In which case the shebang doesn't matter, and never has. It only matters if you're doing:
Or if you're executing it on a web server without an embedded interpreter (like mod_perl). The shebang is a magic number (see man magic) which tells the operating system to execute the command on the line with the given options to intepret the rest of the file. Since the perl file.pl form already has an interpeter attached to the code, the #! is considered just another comment (sort of . . . ) ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|