Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Add an arrayref to a hashref

by Anonymous Monk
on Aug 12, 2019 at 19:16 UTC ( [id://11104346]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $arrayref = [
                     'Country',
                     'location',
                     'language'
                     ];
    
  2. or download this
    my $hashref = {
    
                'name'        => "Harsha",
                'designation' => "Manager"
    }
    
  3. or download this
    push %$hashref{personal},$arrayref;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11104346]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-18 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found