Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: Re: Hash references and illegal octal digits

by MarkM (Curate)
on Dec 24, 2002 at 20:15 UTC ( #222133=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;
    for (@array) {
    ...
            $hash{$1} = $2;
        }
    }
    
  2. or download this
    my %hash;
    /^([^,]+)(?:,(.*))?$/s && ($hash{$1} = $2) for @array;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://222133]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-08-20 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (190 votes). Check out past polls.

    Notices?