Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: regexp's

by Anonymous Monk
on Oct 03, 2000 at 21:49 UTC ( #35153=note: print w/replies, xml ) Need Help??


in reply to regexp's

# you might have to refine the regexp, but that should # match your array foreach $element (@array) { if ($element=~/(\d+).*\s+(\w+)/) { $hash{$2}=$1; } } # probably not the best, but it should work!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2022-08-08 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?