Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Matching against list of patterns

by Eyck (Priest)
on Sep 16, 2004 at 13:56 UTC ( #391444=note: print w/ replies, xml ) Need Help??


in reply to Re: Matching against list of patterns
in thread Matching against list of patterns

What is so scary about hashrefs?

And I don't know how to create and use such beast, how can I figure out which re of  join "|" , @res matched?

And wouldn't that strain our re engine too much (we're talking about scalability here, will hardware improvements keep such code running with number of patterns and lines to parse linearly growing? )


Comment on Re^2: Matching against list of patterns
Download Code
Re^3: Matching against list of patterns
by davorg (Chancellor) on Sep 16, 2004 at 15:01 UTC
    What is so scary about hashrefs?

    Absolutely nothing.

    But anything that you use as a hash key gets converted into a string. And that means that when you pull the keys back out you can no longer use them as hash references - which is what you seem to be doing.

    Can you show us the code that builds your %$users hash?

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

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-07-29 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (214 votes), past polls