Keep It Simple, Stupid | |
PerlMonks |
Re^2: comparing two files for duplicate entriesby Fletch (Bishop) |
on Sep 27, 2006 at 16:50 UTC ( [id://575191]=note: print w/replies, xml ) | Need Help?? |
Yup, it's really just that simple (well, maybe exists rather than defined; but that's a minor nit). If your files are really, really big you probably want to use something like Berkeley_DB or one of the other DBM modules rather than reading everything into memory, but that's just an implementation detail; the basic algorithm remains the same.
In Section
Seekers of Perl Wisdom
|
|