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

Re: Efficient matching with accompanying data (tree)

by Anonymous Monk
on Jul 11, 2013 at 00:53 UTC ( #1043605=note: print w/ replies, xml ) Need Help??


in reply to Efficient matching with accompanying data

I don't understand why you're using a tree

Consider
my @dictionary = qw/ fa la barf /;
my $in_dictionary = join '|', map \&quotemeta, @dictionary;
for my $string ( @strings ){
while( $string =~ m{($in_dictionary)}g ){
print "word=$1\n"
}


Comment on Re: Efficient matching with accompanying data (tree)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-04-18 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (463 votes), past polls