Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Simple comparison of 2 files

by neilwatson (Priest)
on Jul 27, 2016 at 19:02 UTC ( #1168669=note: print w/replies, xml ) Need Help??

in reply to Simple comparison of 2 files

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

Neil Watson

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1168669]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-09-17 07:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found