This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In perlhacktips, no need to give 3 ways to set an environment variable.
authorNicholas Clark <nick@ccl4.org>
Thu, 20 Jun 2013 08:15:31 +0000 (10:15 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Jul 2013 09:14:48 +0000 (11:14 +0200)
pod/perlhacktips.pod

index b694304..752ba9f 100644 (file)
@@ -979,18 +979,7 @@ factor 2.
 
 B<NOTE 2>: To minimize the number of memory leak false alarms (see
 L</PERL_DESTRUCT_LEVEL> for more information), you have to set the
-environment variable PERL_DESTRUCT_LEVEL to 2.
-
-For csh-like shells:
-
-    setenv PERL_DESTRUCT_LEVEL 2
-
-For Bourne-type shells:
-
-    PERL_DESTRUCT_LEVEL=2
-    export PERL_DESTRUCT_LEVEL
-
-In Unixy environments you can also use the C<env> command:
+environment variable PERL_DESTRUCT_LEVEL to 2. For example, like this:
 
     env PERL_DESTRUCT_LEVEL=2 valgrind ./perl -Ilib ...