| [reply] [Watch: Dir/Any] |
probably not completely cross-platform. you could take a look at this recent node | [reply] [Watch: Dir/Any] |
Just to be clear... Do you want to find the shebang line of your script, or do you want to automatically add the appropriate shebang line to a script that presumably doesn't have one?
-- IndyZ | [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
open me,$0 or die $!;
print $shebang=<me>;
| [reply] [Watch: Dir/Any] [d/l] |
"File is not executable; ensure interpreted scripts have '#!' first line"--nutshell
| [reply] [Watch: Dir/Any] |