Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Compare2Files LinebyLine

by vroom (His Eminence)
on Sep 26, 2001 at 19:01 UTC ( [id://114822]=note: print w/replies, xml ) Need Help??


in reply to Compare2Files LinebyLine

You might be interested in checking out Algorithm::Diff. There is a good post by that one guy that shows how to highlight differences in a file. You would probably want to read in each of the files and then split them on \n. You could then grep out lines containing only whitespace or comments. After that you could use Algorithm::Diff to highlight any differences for you.

vroom | Tim Vroom | vroom@blockstackers.com

Replies are listed 'Best First'.
Re: Re: Compare2Files LinebyLine
by thesundayman (Novice) on Sep 26, 2001 at 21:17 UTC
    Thanks a lot.

    The Algorithm::Diff seems like a better option to take in this, reading the module even made me understand the problem of diff better. many thanks.

    thesundayman

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found