Trivial using a database
SELECT * FROM File1 WHERE id IN ( SELECT id FROM File2 )
But really, it's also trivial using Perl.
Either way, you read and process each line of the first file once, not once per line in the second file.
In reply to Re: How to cut down the running time of my program?
by ikegami
in thread How to cut down the running time of my program?
by kayj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |