in reply to Re^2: Filtering very large files using Tie::File
in thread Filtering very large files using Tie::File

If the data's tab delimited, you could split your incoming line on tabs

my @w = split(/\t/,$_);
and then build a key out of the first two fields and use that as your hash key
if ( !$seen{$w[0].$w[1]}++ ) {

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^4: Filtering very large files using Tie::File
by elef (Friar) on Nov 26, 2010 at 18:48 UTC
    As far as I can tell, that does exactly what my regex does. I guess I'll stick with the regex.