From: Jarkko Hietaniemi Date: Wed, 26 Jul 2000 18:06:32 +0000 (+0000) Subject: docfix from Peter Scott . X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=47223a367d95f4dc59ba3d4c168a2648263556ab;p=p5sagit%2Fp5-mst-13.2.git docfix from Peter Scott . p4raw-id: //depot/perl@6446 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 9e920cf..1e3151a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4250,15 +4250,12 @@ Examples: If you're using strict, you I declare $a and $b as lexicals. They are package globals. That means -if you're in the C
package, it's - - @articles = sort {$main::b <=> $main::a} @files; - -or just - - @articles = sort {$::b <=> $::a} @files; - -but if you're in the C package, it's +if you're in the C
package and type + + @articles = sort {$b <=> $a} @files; + +then C<$a> and C<$b> are C<$main::a> and C<$main::b> (or C<$::a> and C<$::b>), +but if you're in the C package, it's the same as typing @articles = sort {$FooPack::b <=> $FooPack::a} @files;