On Sat, 2003-08-02 at 18:33, Michael G Schwern wrote:

> Representing the Backwards Compatiblity Police, I've had co-workers use
> %_ as the globalist of all global hashes.  %_ transends all packages and
> scopes and Perl does not localize it, touch it or use it as it does @_ and 
> $_.  In the particular case I'm thinking of, it was used to hold global
> arguments for function calls in a template system.  Rather insane, really.
> Lots of better ways to do it and clearly making use of an undefined
> language feature.
> 
> I'm not making an argument against %_, just noting that *_ is used 
> opportunisticly and you will break a few programs.


[EMAIL PROTECTED] perl -le '$_{a}=27; package notmain; print $_{a}'
27

Gosh!

Let's document it!  Would it go in perlvar or perlsyn?

The behaviour in question is a side effect of the general magic level of
the other slots in *_, is it not?



-- 
David Nicol /


Reply via email to