summaryrefslogtreecommitdiff
path: root/pod/perlrun.pod
diff options
context:
space:
mode:
authorCharles Bailey <bailey@newman.upenn.edu>1998-09-04 21:23:58 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-09-23 08:45:58 +0000
commitbd3fa61ce4cf706aee95ff3241fb1c7b94ddf61a (patch)
tree349add580f1742a8fdcda306b3c8438102d39d36 /pod/perlrun.pod
parenta97be1210229297ea0fbef9273b534b7a5fa973c (diff)
downloadperl-bd3fa61ce4cf706aee95ff3241fb1c7b94ddf61a.tar.gz
(via private mail)
Message-id: <01J1FH7R43NS002F14@cor.newman.upenn.edu> Subject: [Patch 5.005_02] Miscellaneous VMS cleanup p4raw-id: //depot/perl@1837
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r--pod/perlrun.pod15
1 files changed, 15 insertions, 0 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index a0c85b917b..6ea5a1dbfb 100644
--- a/pod/perlrun.pod
+++ b/pod/perlrun.pod
@@ -129,6 +129,21 @@ and a Perl library file.
Macintosh perl scripts will have the appropriate Creator and
Type, so that double-clicking them will invoke the perl application.
+=item VMS
+
+Put
+
+ $ perl -mysw 'f$env("procedure")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !
+ $ exit++ + ++$status != 0 and $exit = $status = undef;
+
+at the top of your script, where C<-mysw> are any command line switches you
+want to pass to Perl. You can now invoke the script directly, by saying
+C<perl script>, or as a DCL procedure, by saying C<@script> (or implicitly
+via F<DCL$PATH> by just using the name of the script).
+
+This incantation is a bit much to remember, but Perl will display it for
+you if you say C<perl "-V:startperl">.
+
=back
Command-interpreters on non-Unix systems have rather different ideas