Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: hash key regular expression pattern

by davorg (Chancellor)
on Nov 14, 2002 at 13:01 UTC ( #212828=note: print w/replies, xml ) Need Help??


in reply to Re: hash key regular expression pattern
in thread hash key regular expression pattern

There is a difference, but it's a bit subtle.

With Tie::RegexpHash you set your hash keys to regular expressions and then look them up using fixed strings.

With Tie::Hash::Regex you set the keys to fixed strings and then look them up using regular expressions.

In this case, it looks like Tie::RegexpHash is the way to go.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Re: hash key regular expression pattern

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-07-04 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?