Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Hash of Regex

by 7stud (Deacon)
on Apr 06, 2010 at 22:22 UTC ( #833140=note: print w/ replies, xml ) Need Help??


in reply to Re: Hash of Regex
in thread Hash of Regex

Perhaps you also will be interested in:</p.

my %dict = ( 'brown' => 'yellow', qr/int(\d+)/ => 'int', qr/float(\d+)/ => 'float', );
That doesn't do anything for me.

Edit: Woohoo. More negative rep. Keep it coming. I'm shooting for -100,000 by next week.


Comment on Re^2: Hash of Regex
Download Code
Re^3: Hash of Regex
by zwon (Monsignor) on Apr 06, 2010 at 22:33 UTC
    That doesn't do anything for me.
    That shouldn't. OP asked if he can use regexp as a hash key, so I think he may be interested in inspecting content of mentioned hash with the help of Data::Dumper
      Thanks, I should have first checked the content of my hash using Data::Dumper.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-09-19 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (145 votes), past polls