in reply to Re: Retrieving an anonymous hash
in thread Retrieving an anonymous hash

#Turn OFF use strict
Manipulating typeglobs is perfectly legal under strict, it's trying to treat strings as typeglobs thats illegal.

Replies are listed 'Best First'.
Re: Re: Re: Retrieving an anonymous hash
by NetWallah (Canon) on Mar 19, 2004 at 17:36 UTC
    Actually you need to turn OFF strict when you USE the local variable, otherwise, you get
    Global symbol "$x" requires explicit package name at blah ...

    To minimize exposure, it should be coded thus:

    no strict qw(vars); ## Accessing code here ... use strict qw(vars);

    Offense, like beauty, is in the eye of the beholder, and a fantasy.
    By guaranteeing freedom of expression, the First Amendment also guarntees offense.