in reply to Re: "perl script.pl args" or "script.pl args" (neither/install)
in thread "perl script.pl args" or "script.pl args"
#!/bin/sh eval 'exec perl -wS $0 ${1+"$@"}' if 0;
at the top of my scripts and invoke them all with sh foo? :^)
PS: Since I've replied to half the original question: my editor puts the shebang line in there for me, so I always have one - unless I'm trying something real quick like, which I do just like jeffa (launch perl, paste, Ctrl-D).
Makeshifts last the longest.
|
|---|