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


in reply to What namespace is CGI:ReadParse() using?

Use the fully qualified name of the variable (%main::in) or declare the variable with our %in in your program. (Presumably it's using %main::in. Adjust accordingly otherwise.)

Replies are listed 'Best First'.
Re: Re: What namespace is CGI:ReadParse() using?
by Cody Pendant (Prior) on Jul 01, 2002 at 02:42 UTC
    So, the hash is in the main namespace? And what does one do to make code which uses it strict-proof -- I'm missing something obvious, aren't I?
    --
    ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
      The bog standard our %in; in main - or if you're using an older Perl, use vars qw(%in);

      Makeshifts last the longest.