diff options
author | Steve Peters <steve@fisharerojo.org> | 2004-12-21 17:36:12 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-11-27 05:51:49 +0000 |
commit | 428bacd701ef45155f9dfd0d9c3d063dc305de00 (patch) | |
tree | 71d04ebc4a785951b5e8eed09dc5ba9b7fd571f1 /pod/perlrun.pod | |
parent | 6702284617d8c80196d105d0d999663377cec94b (diff) | |
download | perl-428bacd701ef45155f9dfd0d9c3d063dc305de00.tar.gz |
[perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux
From: "Steve Peters via RT" <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-32979-103402.11.4873424142094@perl.org>
Applying a four year old patch from myself. w00t!
p4raw-id: //depot/perl@34943
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index aea799801e..d8e718ef1b 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. |