Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Why use map here? (re: Hash/Array of Regular Expressions?)

by bikeNomad (Priest)
on Jun 24, 2001 at 20:19 UTC ( [id://91073]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array = ( qr{^abcd}, qr{cd[ef]g}, qr{cat$} );
    
  2. or download this
     regexes := strings collect: [ :ea | Regex new: ea ].
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found