Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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
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
Node Status?
node history
Node Type: note [id://1168669]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2019-04-23 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (118 votes). Check out past polls.

    Notices?