From: Steve Peters Date: Tue, 21 Dec 2004 17:36:12 +0000 (+0000) Subject: [perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=428bacd701ef45155f9dfd0d9c3d063dc305de00;p=p5sagit%2Fp5-mst-13.2.git [perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux From: "Steve Peters via RT" Message-ID: Applying a four year old patch from myself. w00t! p4raw-id: //depot/perl@34943 --- diff --git a/pod/perlrun.pod b/pod/perlrun.pod index aea7998..d8e718e 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -77,9 +77,10 @@ Parsing of the #! switches starts wherever "perl" is mentioned in the line. The sequences "-*" and "- " are specifically ignored so that you could, if you were so inclined, say - #!/bin/sh -- # -*- perl -*- -p - eval 'exec perl -wS $0 ${1+"$@"}' - if $running_under_some_shell; + #!/bin/sh + #! -*-perl-*- + eval 'exec perl -x -wS $0 ${1+"$@"}' + if 0; to let Perl see the B<-p> switch.