Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: namespace hacking with globs

by lodin (Hermit)
on Jan 15, 2008 at 12:24 UTC ( [id://662453]=note: print w/replies, xml ) Need Help??


in reply to namespace hacking with globs

I think you're looking for

*ON::Ar = $HugeArrayRef
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://662453]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found