From: Jarkko Hietaniemi Date: Sun, 3 Jun 2001 17:27:13 +0000 (+0000) Subject: Mention that lexicalizing $a or $b is a bad idea if one X-Git-Tag: accepted/trunk/20130322.191538~31684 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53e56e0a46451584819aaf58b0d3aee8f2ed60e3;p=platform%2Fupstream%2Fperl.git Mention that lexicalizing $a or $b is a bad idea if one wants to use sort(). p4raw-id: //depot/perl@10409 --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index da06055..b72f357 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -118,7 +118,9 @@ test. Outside a C test, this will not happen. Special package variables when using sort(), see L. 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 or C +if you want to be able to use them in the sort() comparison block +or function. =back