The stupid question is the question not asked | |
PerlMonks |
Re: hash to hash comparison on large filesby targetsmart (Curate) |
on Apr 08, 2009 at 13:55 UTC ( [id://756338]=note: print w/replies, xml ) | Need Help?? |
instead of
try you can reduce some time.
UPDATE opening the same file twice?! since so will iterate over nothing!. moreover you have to read file1 again to get first column of file1 to be written into file2, so better change(going by your method) to (Untested) I agree with moritz on so use seek to move file pointer to the beginning after while loop ends Vivek -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
In Section
Seekers of Perl Wisdom
|
|