in reply to Best way to compare my data?

Parse the file into individual route blocks so that you end up with an array (routes) of arrays (nodes in a route). Then use Algorithm::Diff to compare pairs of routes to pull out the difference information you require.

If you'd have shown us your code I'd have shown you mine.


True laziness is hard work

Replies are listed 'Best First'.
Re^2: Best way to compare my data?
by Lavezzi (Initiate) on Mar 29, 2010 at 16:26 UTC

    Sorry, I read in the FAQ that it was best to post code in the scratchpad so it was easier for other users to see!

    Most of these suggestions are going way over my head, like I said I'm not that well versed with Perl at all!

      Scratchpads are transitory. Code is best placed in its relevant thread for the benefit of those who come days, weeks, months after the scratchpad has been altered or cleared.

      I think if you carefully re-read the FAQ, it actually suggests posting code on your scratchpad if you have asked (or are about to ask) a longish question in the Chatterbox.

      HTH,

      planetscape