Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Filtering very large files using Tie::File

by talexb (Canon)
on Nov 26, 2010 at 17:57 UTC ( #873904=note: print w/ replies, xml ) Need Help??


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


Comment on Re^3: Filtering very large files using Tie::File
Select or Download Code
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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-07-25 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls