in reply to Re: Shebang Inside the coding ?
in thread Shebang Inside the coding ?

Shebangs is meaningful only on the first 2 bytes in the first line of a file.
Not always. Perl's -x switch allows you to run a program that has other garbage before it (e.g. the program is embedded in an email message), and expects to find the #! line partway into the file. See just above http://perldoc.perl.org/perlrun.html#ENVIRONMENT.

Replies are listed 'Best First'.
Re^3: Shebang Inside the coding ?
by sk (Curate) on Jan 16, 2006 at 16:38 UTC
    Thanks ysth. I totally forget about that switch. Now I remember how people use to make jpeg files print JAPH but putting the shebang at the end of the jpeg file and running the jpeg file through -x. Thanks for catching this!

    cheers

    SK