in reply to #!perl Question
I haven't come across a completely generic shebang that works on both Windows and *nix.eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}' && eval 'exec perl -w -S $0 $argv:q' if 0; # The above invocation finds perl in the path, wherever it may be #(as + long as it's not Windows) # # For Windows, use something like: # # ASSOC .pl=PerlScript # FTYPE PerlScript=perl.exe %1 %* #
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: #!perl Question
by Anonymous Monk on Oct 04, 2005 at 04:36 UTC | |
by QM (Parson) on Oct 04, 2005 at 17:49 UTC |