Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Concatenate anonymous hash ref

by Thelonius (Priest)
on Oct 14, 2008 at 20:55 UTC ( #717086=note: print w/replies, xml ) Need Help??


in reply to Concatenate anonymous hash ref

You can replace this little loop
foreach my $key (keys %$temp) { $x->{$key} = $temp->{$key}; }
with
@$x{keys %$temp} = values %$temp;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://717086]
help
Chatterbox?
[Discipulus]: Sigh. It's beer o'clock in Tennessee, I guess... worth a laugh

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-05-23 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?