in reply to Compare files

Hello and welcome!

Please see How do I compute the difference of two arrays in perlfaq4. You can also find this information on the command line via

perldoc -q difference

Also, maybe for a fancier difference, you might want Algorithm::Diff.