ultranerds has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I'm trying to achive something like this - with 2 strings:

http://www.travellerspoint.com/wiki_compare.cfm?title=Panama&new_version=25&old_version=23

Is there a "good" way of doing this? Or is it gonna be a case of trying to make use of the `diff` command from command line? (I've used this before, but its made quite difficult to use - as I wanna really split them up into 2 <td> cells, kinda like the example URL above)

TIA

Andy
  • Comment on Comparing contents of 2 string (or files), and showing differences

Replies are listed 'Best First'.
Re: Comparing contents of 2 string (or files), and showing differences
by moritz (Cardinal) on Sep 22, 2009 at 12:20 UTC
      Hi,

      Thanks for your reply. Re the "help" section, sorry - missed that bit. Didn't realise you could do all that stuff ;) Will try and use it in the future.

      Regarding those modules etc - I've asked my host to install them, and I'll then give it a go - and see if it will do what I need :)

      Thanks again

      Andy
Re: Comparing contents of 2 string (or files), and showing differences
by Corion (Patriarch) on Sep 22, 2009 at 12:12 UTC