Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Adding an new element to array.

by hdb (Parson)
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'};


Comment on Re: Adding an new element to array.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-07-24 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (157 votes), past polls