Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: namespace hacking with globs

by jbert (Priest)
on Jan 15, 2008 at 13:29 UTC ( #662461=note: print w/replies, xml ) Need Help??


in reply to namespace hacking with globs

Perhaps do it the other way?

Take a reference to the array in the other namespace, and fill that up.

my $ar = \@OtherNameSpace::Ar; doTheThingWhichPopulatesBigArray($ar);
That way you've still only got one copy of the data.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662461]
help
Chatterbox?
[Eily]: and therefore concluded that the eval did succeed because there was no printed error :P
[Eily]: stupid operator precedence :D
marto is a stupid operator :P

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-10-24 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (287 votes). Check out past polls.

    Notices?