Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Can a single key have different value assigned to it

by Anonymous Monk
on Apr 19, 2012 at 07:24 UTC ( [id://965883]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dump;
    dd { lastnames => [ qw/ ro sham bo / ] };
    __END__
    { lastnames => ["ro", "sham", "bo"] }
    
  2. or download this
    use Data::Dump;
    my %info;
    push @{ $info{lastnames} }, 'ro';
    ...
    dd \%info;
    __END__
    { lastnames => ["ro", "sham", "bo"] }
    
  3. or download this
    use Data::Dump;
    my %info;
    $info{lastnames}[0] = 'ro';
    ...
    dd \%info;
    __END__
    { lastnames => ["ro", "sham", "bo"] }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-23 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found