Problems? Is your data what you think it is? | |
PerlMonks |
Re: Matching against list of patternsby davorg (Chancellor) |
on Sep 16, 2004 at 12:29 UTC ( [id://391422]=note: print w/replies, xml ) | Need Help?? |
Can you explain a little more about your data structures. It looks like you have hash references as the keys in your %$users hash - and that strikes me as a little scary (and it almost certainly doesn't do what you think it does). The solution to your problem is probably to create a large regex from all off the individual regexes and use that instead.
-- <http://www.dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|