Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[Discipulus]: Random_Walk maybe you want to reply to the first, original question: that one will be reaped soon

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-05-24 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?