XP is just a number | |
PerlMonks |
Re: Reading concurrently two files with different number of linesby bioinformatics (Friar) |
on Apr 10, 2013 at 16:23 UTC ( [id://1028007]=note: print w/replies, xml ) | Need Help?? |
If you don't want to read in the file, then you can use or in your original code above. You'll need an if statement to catch when either of the two $lineX values is undefined, and make the comparison otherwise. The code can increase in complexity as you decide whether you want to see if things are offset in a file, rather than if the same lines have the same values.
Bioinformatics
In Section
Seekers of Perl Wisdom
|
|