Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by izut (Chaplain)
on Jan 14, 2008 at 07:38 UTC ( #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
Node Status?
node history
Node Type: note [id://662267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-04-11 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?