Perl: the Markov chain saw | |
PerlMonks |
Re: compare two files and print the differences of file 2 in a third fileby robby_dobby (Hermit) |
on Jun 14, 2017 at 05:17 UTC ( [id://1192753]=note: print w/replies, xml ) | Need Help?? |
Hello Lonnie,
Welcome to the monastery! You're doing a few things that are just considered bad convention:
Good on you for posting the code and I can see that you're doing a lot of work, which would just as easily achieved by using an available module such as File::Compare. File::Compare is bundled with standard perl distributions and should be available with your local installation. Sure, it doesn't print the exact differences which is what you wanted to do, but you can As always, have fun! :-)
In Section
Seekers of Perl Wisdom
|
|