Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Add an arrayref to a hashref

by Anonymous Monk
on Aug 12, 2019 at 19:16 UTC ( #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
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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-12-05 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?