Keep It Simple, Stupid | |
PerlMonks |
Re: Compare 2 files and get databy jpeg (Chaplain) |
on Sep 05, 2005 at 08:49 UTC ( [id://489170]=note: print w/replies, xml ) | Need Help?? |
yes, the logic is at fault. The while() loops are executed sequentially and the if block is evaluated after both have completed, so the script is comparing elements from the last line of each file. You'll need to nest those while loops or better yet, read the elements into arrays and compare them.
I don't mean to cramp your style, but there are a few points I feel I should mention.
-- jpg
In Section
Seekers of Perl Wisdom
|
|