Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Reading concurrently two files with different number of linesby topher (Scribe) |
on Apr 11, 2013 at 15:35 UTC ( [id://1028184]=note: print w/replies, xml ) | Need Help?? |
diff would not understand the continuation lines, but it doesn't necessarily have to. You can break your problem into two parts, and attack them individually:
The first you would do with Perl. Write a script that just handles the line continuations and normalizes your input into a "clean" format. You could then use diff to do the actual comparison between the two files. If diff doesn't meet your requirements for some reason, your comparison code would still be cleaner and simpler for not having to deal with the line continuations.
Christopher Cashell
In Section
Seekers of Perl Wisdom
|
|