Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Adding an new element to array.

by hdb (Monsignor)
on Aug 21, 2013 at 15:39 UTC ( #1050376=note: print w/replies, xml ) Need Help??


in reply to Adding an new element to array.

How about:

@$VAR1{ keys %$VAR2 } = values %$VAR2;

or just

$VAR1->{'DOC'} = $VAR2->{'DOC'};

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050376]
help
Chatterbox?
[marto]: more snow, seems like a good idea to leave early today...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2018-01-17 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (200 votes). Check out past polls.

    Notices?