Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Compare2Files LinebyLineby vroom (His Eminence) |
on Sep 26, 2001 at 19:01 UTC ( [id://114822]=note: print w/replies, xml ) | Need Help?? |
You might be interested in checking out Algorithm::Diff. There is a good post by that one guy that shows how to highlight differences in a file. You would probably want to read in each of the files and then split them on \n. You could then grep out lines containing only whitespace or comments. After that you could use Algorithm::Diff to highlight any differences for you.
vroom | Tim Vroom | vroom@blockstackers.com
In Section
Cool Uses for Perl
|
|