projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56dd5b2
)
Mention that lexicalizing $a or $b is a bad idea if one
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 3 Jun 2001 17:27:13 +0000
(17:27 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 3 Jun 2001 17:27:13 +0000
(17:27 +0000)
wants to use sort().
p4raw-id: //depot/perl@10409
pod/perlvar.pod
patch
|
blob
|
history
diff --git
a/pod/perlvar.pod
b/pod/perlvar.pod
index
da06055
..
b72f357
100644
(file)
--- a/
pod/perlvar.pod
+++ b/
pod/perlvar.pod
@@
-118,7
+118,9
@@
test. Outside a C<while> test, this will not happen.
Special package variables when using sort(), see L<perlfunc/sort>.
Because of this specialness $a and $b don't need to be declared
(using local(), use vars, or our()) even when using the strict
-vars pragma.
+vars pragma. Don't lexicalize them with C<my $a> or C<my $b>
+if you want to be able to use them in the sort() comparison block
+or function.
=back