Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: re-using a hash reference (was: Mar)

by George_Sherston (Vicar)
on Jun 08, 2002 at 17:13 UTC ( [id://172808]=note: print w/replies, xml ) Need Help??


in reply to re-using a hash reference (was: Mar)

Or you could put it in a temp variable:
my $temp; $temp = $hash1->{'a'}->{'b'}->{'c'}; $hash2->{'bob'} = $temp if defined $temp;
... which probably saves time digging around in your hash if it's a big'un.

§ George Sherston

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found