Jump to content

Multiline shebang: Difference between revisions

(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.
{{incorrect|Perl|This is not a multiline shebang. A plain #! can only have one line.}}
<lang perl>#!/usr/bin/perl
A plain shebang will do.
eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
 
<lang& eval 'exec perl>#!/usr/bin/env perl</lang> -wS $0 $argv:q'
if $running_under_some_shell;</lang>
 
=={{header|Python}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.