Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Concatenate anonymous hash ref

by Thelonius (Curate)
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;


Comment on Re: Concatenate anonymous hash ref
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-07-13 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls