Welcome to the Monastery | |
PerlMonks |
Re^7: Simple comparison of 2 filesby Marshall (Canon) |
on Jul 27, 2016 at 20:17 UTC ( [id://1168680]=note: print w/replies, xml ) | Need Help?? |
Reading file1 into memory doesn't save anything. Reading file2 into memory does. The "expensive" operation is the line by line text read of the input file. Saving the split from File1 is an idea, but not necessary since each line from File1 need only be read and dealt with once as per my code.
In Section
Seekers of Perl Wisdom
|
|