Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[james28909]: id just rename the subrouties perl what kind of data they are getting. something easy to remember too. like if get_data were returning movies titles, rename get_data to movies or movie_titles or get_movie_titles.
[james28909]: s/perl/per/
[james28909]: but i dont really know what your end goal is. if it works dont fix it lol

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2017-05-24 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?