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

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

by sundialsvc4 (Abbot)
on Apr 19, 2012 at 12:33 UTC ( [id://965936]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e 'my $h; my $k="foo"; push @{$$h{k}}, "bar"; use Data::Dumper
    +; print Data::Dumper->Dump([$h], ["h"]);'
    
    ...
                    'bar'
                  ]
         };
    
  2. or download this
    $ perl -e 'my $h; my $k="foo"; push @{$$h{k}{"name"}}, "bar"; use Data
    +::Dumper; print Data::Dumper->Dump([$h], ["h"]);'
    
    ...
                              ]
                  }
         };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-24 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found