This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
identifiers always in main (was: defining a _ function breaks File::Find)
authorXavier Noria <fxn@hashref.com>
Sun, 23 Oct 2005 09:47:37 +0000 (11:47 +0200)
committerDave Mitchell <davem@fdisolutions.com>
Mon, 9 Jan 2006 02:20:51 +0000 (02:20 +0000)
Message-Id:  <D3867DED-313E-4D39-A85F-1178FE7F7A5E@hashref.com>

clarify which variables are always forced into main::

p4raw-id: //depot/perl@26749

pod/perlvar.pod

index dbc82ec..39e5c45 100644 (file)
@@ -1494,11 +1494,11 @@ control-character name that begins with C<^_> will acquire a special
 meaning in any future version of Perl; such names may therefore be
 used safely in programs.  C<$^_> itself, however, I<is> reserved.
 
-Perl identifiers that begin with digits, control characters, or
-punctuation characters are exempt from the effects of the C<package>
-declaration and are always forced to be in package C<main>; they are
-also exempt from C<strict 'vars'> errors.  A few other names are also
-exempt in these ways:
+Perl identifiers that consist of all digits, or begin with control
+characters, or are a single punctuation character, are exempt from the
+effects of the C<package> declaration and are always forced to be in
+package C<main>; they are also exempt from C<strict 'vars'> errors. A
+few other names are also exempt in these ways:
 
        ENV             STDIN
        INC             STDOUT