summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-07-26 18:06:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-26 18:06:32 +0000
commitb7e88e09ad76757a757083478dfcd936723499b6 (patch)
treeca15e2e03f2ffe7d6cbfdf15d8ef449a3c4f0298 /pod/perlfunc.pod
parentc67ade9fa838524c72a47779ca8d58bee54447aa (diff)
downloadperl-b7e88e09ad76757a757083478dfcd936723499b6.tar.gz
docfix from Peter Scott <Peter@PSDT.com>.
p4raw-id: //depot/perl@6446
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod15
1 files changed, 6 insertions, 9 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 9e920cfad5..1e3151a423 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4250,15 +4250,12 @@ Examples:
If you're using strict, you I<must not> declare $a
and $b as lexicals. They are package globals. That means
-if you're in the C<main> package, it's
-
- @articles = sort {$main::b <=> $main::a} @files;
-
-or just
-
- @articles = sort {$::b <=> $::a} @files;
-
-but if you're in the C<FooPack> package, it's
+if you're in the C<main> 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<FooPack> package, it's the same as typing
@articles = sort {$FooPack::b <=> $FooPack::a} @files;