Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Simple comparison of 2 files

by neilwatson (Priest)
on Jul 27, 2016 at 19:02 UTC ( [id://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
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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found