Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: How to copy an array to a hash?

by izut (Chaplain)
on Jan 14, 2008 at 07:38 UTC ( [id://662267]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
    my %dict = split m/\s+=\s+|\n+/, $input;
    
    print Dumper \%dict;
    
  2. or download this
    $ perl test.pl 
    $VAR1 = {
    ...
              'b' => '2',
              'd' => '4'
            };
    

Log In?
Username:
Password:

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

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

    No recent polls found