Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: from array to hash with grep

by jeanluca (Deacon)
on Jun 15, 2006 at 08:18 UTC ( [id://555446]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $inp{A} = 'abc_A_bla' ;
    etc
    
  2. or download this
    foreach ( @inp ) {
         ($key) = $_ =~ /\w{3}_(\w)/ ; 
          $inp{$key} = $_ ;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found