go ahead... be a heretic | |
PerlMonks |
Re: namespace hacking with globsby lodin (Hermit) |
on Jan 15, 2008 at 12:24 UTC ( [id://662453]=note: print w/replies, xml ) | Need Help?? |
I think you're looking for The way it works is that it sets *ON::Ar{ARRAY} to be $HugeArrayRef. Thus $HugeArrayRef is now de facto the array that @ON::Ar represents. There's more about this in perldata (see e.g. "Typeglobs and Filehandles") and perlref for *foo{THING}. lodin
In Section
Seekers of Perl Wisdom
|
|