Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: from array to hash with grep

by bart (Canon)
on Jun 15, 2006 at 08:04 UTC ( [id://555441]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @result = map /\w{3}_(\w)/, @inp;
    
  2. or download this
    $inp{$_} = 1 foreach map /\w{3}_(\w)/, @inp;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-19 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found