Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: line by line match on an array of strings

by vdrab (Initiate)
on Jan 11, 2008 at 02:57 UTC ( [id://661781]=note: print w/replies, xml ) Need Help??


in reply to line by line match on an array of strings

Hi, What exactly do you mean by "see if there's a match against any of the strings in the array"? Do you just have to check for "a" match? Just thinking loud (I don't know what the data is or where it came from), but would it be an option to sort the array, and look for matches using binary search? That would save you a fair lot of processing (assuming the sorting can be done offline). v.
  • Comment on Re: line by line match on an array of strings

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found