Re: [Boston.pm] binary search on a list of sorted strings in memory

2009-07-08 Thread Uri Guttman
> "ST" == Steve Tolkin writes: ST> I want to do a binary search on a list of strings in memory. ST> Basically I want the bsearch functionality, also implemented in ST> Search::Dict. ST> I want to search a sorted array to see if which strings, if any, ST> have the same prefix as my

Re: [Boston.pm] binary search on a list of sorted strings in memory

2009-07-08 Thread Ben Tilly
On Wed, Jul 8, 2009 at 5:33 PM, Steve Tolkin wrote: [...] > Alternatively, can someone recommend  another perl module for prefix > searching on a moderately large set of strings, e.g. trie  or suffix tree or > suffix array, etc..  It must be reliable and easy to use. I should have responded to

Re: [Boston.pm] binary search on a list of sorted strings in memory

2009-07-08 Thread Ben Tilly
On Wed, Jul 8, 2009 at 5:33 PM, Steve Tolkin wrote: > I want to do a binary search on a list of strings in memory.  Basically I > want the bsearch functionality, also implemented in Search::Dict. > Unfortunately that is documented to only work for a list of strings in a > file.    

[Boston.pm] binary search on a list of sorted strings in memory

2009-07-08 Thread Steve Tolkin
I want to do a binary search on a list of strings in memory. Basically I want the bsearch functionality, also implemented in Search::Dict. Unfortunately that is documented to only work for a list of strings in a file.http://search.cpan.org/~nwclark/perl-5.8.9/lib/Search/Dict.pm says in part:

Re: [Boston.pm] packaging a perl module as an RPM; different distribution

2009-07-08 Thread Chris Patti
On Wed, Jul 8, 2009 at 1:40 PM, Steve Scaffidi wrote: > One more suggestion, a-la virtual machines: I know you mentioned > having to work in Cygwin, but if the plan is to deploy on CentOS, then > that's just trying to push a camel through a cat-door... I'll leave > the explanation of that to

Re: [Boston.pm] packaging a perl module as an RPM; different distribution

2009-07-08 Thread Brian Reichert
On Wed, Jul 08, 2009 at 02:53:25AM -0400, Andrew Langmead wrote: > On Tue, 2009-07-07 at 13:37 -0400, Brian Reichert wrote: > > I've been packaging perl modules as RPMs.[...] Now, my environment has > > changed. The host I'm now packaging on > > runs perl 5.10, but the target Linux host has

Re: [Boston.pm] packaging a perl module as an RPM; different distribution

2009-07-08 Thread Andrew Langmead
On Tue, 2009-07-07 at 13:37 -0400, Brian Reichert wrote: > I've been packaging perl modules as RPMs.[...] Now, my environment has > changed. The host I'm now packaging on > runs perl 5.10, but the target Linux host has 5.8.8 installed. > I can think of a couple of things: (a relatively hacky