From 428bacd701ef45155f9dfd0d9c3d063dc305de00 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 21 Dec 2004 17:36:12 +0000 Subject: [PATCH] [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 --- pod/perlrun.pod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. -- 2.7.4