in reply to Simple comparison of 2 files

Why not use the diff command instead? Another option is Test::Differences.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^2: Simple comparison of 2 files
by Q.and (Novice) on Jul 27, 2016 at 19:16 UTC
    This is a super simplified version of a script I'm writing, also with super simplified input files. The real goal of the script is not to diff, but I realized that that is a core issue within the script (the if statement is not operating correctly, as it prints even when the variables $FILE1letter and $FILE2letter are not the same and I think the problem lies within the larger looping structure of the entire code. Hopefully trying to simplify the problems at the core of the script hasn't overcomplicated it further.
Re^2: Simple comparison of 2 files
by Anonymous Monk on Jul 27, 2016 at 20:43 UTC

    It's not a diff, it's a cross-product.