From: Jarkko Hietaniemi Date: Fri, 4 Jan 2002 20:06:58 +0000 (+0000) Subject: Spread the good word of "env". X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c406981e00deead8e4a58424b87a96ede9af2f23;hp=4845d0b217149851eff12d4c8710aa5b85df4596;p=p5sagit%2Fp5-mst-13.2.git Spread the good word of "env". p4raw-id: //depot/perl@14060 --- diff --git a/pod/perlhack.pod b/pod/perlhack.pod index 4efe90b..c93e230 100644 --- a/pod/perlhack.pod +++ b/pod/perlhack.pod @@ -1891,6 +1891,15 @@ If you plan to use the "Viewer" windows, then you only need this option: setenv PURIFYOPTIONS "-chain-length=25" +In Bourne-type shells: + + PURIFY_OPTIONS="..." + export PURIFY_OPTIONS + +or if you have the "env" utility: + + env PURIFY_OPTIONS="..." ../pureperl ... + =head2 Purify on NT Purify on Windows NT instruments the Perl binary 'perl.exe' diff --git a/pod/perllocale.pod b/pod/perllocale.pod index 7864add..43ffe58 100644 --- a/pod/perllocale.pod +++ b/pod/perllocale.pod @@ -310,6 +310,10 @@ locale "En_US"--and in Cshish shells (B, B) setenv LC_ALL en_US.ISO8859-1 +or if you have the "env" application you can do in any shell + + env LC_ALL=en_US.ISO8859-1 perl ... + If you do not know what shell you have, consult your local helpdesk or the equivalent. diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 138e344..7326d27 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -334,6 +334,9 @@ If you're just trying to get a print out of each line of Perl code as it executes, the way that C provides for shell scripts, you can't use Perl's B<-D> switch. Instead do this + # If you have "env" utility + env=PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program + # Bourne shell syntax $ PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program