![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: greping big numbersby samtregar (Abbot) |
on Mar 22, 2009 at 22:25 UTC ( [id://752449]=note: print w/replies, xml ) | Need Help?? |
I would use Bit::Vector for this. You'll need about 125MB of free memory, but that's easy to come by these days. Should work fine for overlapping ranges and runs very fast on my system:
Prints:
You might also look at Bit::Vector's to_Enum() and from_Enum() method, which do IO using ranges of indexes but it in a slightly different format from yours. -sam
In Section
Seekers of Perl Wisdom
|
|