Anonymous user
Multiline shebang: Difference between revisions
→{{header|Perl}}
(Add {{incorrect}} to 10 examples, because: "This is not a multiline shebang. A plain #! can only have one line.") |
|||
Line 64:
=={{header|Perl}}==
From <code>perldoc perlrun</code>, the following is supposed to find perl one way or another under sh, csh or perl.
<lang perl>#!/usr/bin/perl
eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
if $running_under_some_shell;</lang>
=={{header|Python}}==
|