in reply to How can one bypass use strict?

The special variables that are exempt from package scope are presumably also except from needing scope qualification under strict. They are:

identifiers that begin with digits, control characters, or punctuation characters,

ENV STDIN INC STDOUT ARGV STDERR ARGVOUT SIG

Also, ${^CMDLINE} is reserved. Use ${^_CMDLINE} if you must, but an ordinary variable should do.

—John

Replies are listed 'Best First'.
Re: Re: How can one bypass use strict?
by japhy (Canon) on Aug 13, 2001 at 23:41 UTC
    What do you mean by "${^CMDLINE} is reserved".

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

      According to perlvar, "These variables are reserved for future special uses by Perl, except for the ones that begin with ^_ (control-underscore or caret-underscore)."

      A new version of Perl may use a variable name that stomps on your use, if you use a "funny" variable of your own.