Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Add an arrayref to a hashref (diverehohy)

by Anonymous Monk
on Aug 13, 2019 at 04:27 UTC ( #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
Node Status?
node history
Node Type: note [id://11104368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-12-04 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?