X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlvar.pod;h=eae87c791c3713fd2e80eec33fc4fc7f9cd10d1c;hb=7a49b6353172b360490be5a51e0d2f104b7cb0ec;hp=da060557ff12d3731837f4c7bd81933753d2d2b2;hpb=a1db74c9755dc2a9521646a76c602982eb3bed82;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlvar.pod b/pod/perlvar.pod index da06055..eae87c7 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 @@ -609,10 +611,10 @@ Also see L. =item $@ -The Perl syntax error message from the last eval() operator. If null, the -last eval() parsed and executed correctly (although the operations you -invoked may have failed in the normal fashion). (Mnemonic: Where was -the syntax error "at"?) +The Perl syntax error message from the last eval() operator. +If $@ is the null string, the last eval() parsed and executed +correctly (although the operations you invoked may have failed in the +normal fashion). (Mnemonic: Where was the syntax error "at"?) Warning messages are not collected in this variable. You can, however, set up a routine to process warnings by setting C<$SIG{__WARN__}>