http://www.perlmonks.org?node_id=1034190


in reply to Re^2: Scalar followed by parenthetical...
in thread Scalar followed by parenthetical...

But isn't %_ immune to strict in the same way and for the same reasons as $_ and @_?

C:\test>perl -cmstrict -E"say %_" -e syntax OK

That is, they are all 3 a part of the same typeglob.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Scalar followed by parenthetical...
by Anonymous Monk on May 19, 2013 at 05:39 UTC

      See perlvar (for 5.10) when there was a section entitled "Technical Note on the Syntax of Variable Names", which contained the paragraph:

      Perl identifiers that begin with digits, control characters, or punctuation characters are exempt from the effects of the package declaration and are always forced to be in package main; they are also exempt from strict 'vars' errors.

      Seems to have disappeared from later versions.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        It's still there. It was just moved to the top in 5.14.