Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Add an arrayref to a hashref (diverehohy)

by Anonymous Monk
on Aug 13, 2019 at 04:27 UTC ( [id://11104368]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $Record = {};
    $Record->{designation}
    = "Manager"; #d0
    ...
    
    $Record->{personal}[2]
     = "language"; #d1
    
  2. or download this
    use Data::Diver qw/ DiveVal /;
    my $Record = {};
    ...
       ],
       "name" : "Harsha"
    }
    
  3. or download this
    my $Record = {
      designation => "Manager",
      name => "Harsha",
      personal => ["Country", "location", "language"],
    };
    

Log In?
Username:
Password:

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

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

    No recent polls found