in reply to Re: Loop through two files in comparison
in thread Loop through two files in comparison

Thanks for all that. This being my first post on the forum, I'll bite the dust.

Unfortunately the perl version that is available here is 5.005_02. Also, I'm not familiar with the hash, could you please throw light on what was done in your code? Is it possible to replicate this using arrays? Thanks a ton!

  • Comment on Re^2: Loop through two files in comparison

Replies are listed 'Best First'.
Re^3: Loop through two files in comparison
by GrandFather (Saint) on Aug 13, 2012 at 06:29 UTC

    If at all possible you should update to a more recent version of Perl. The language has moved on a long way since that very old version.

    Perl's hash data type is fundamental to using Perl well. If you expect to write Perl rather than C (or some other simple language) using Perl then it really will repay the effort many times over to learn about the power of Perl's data types. See perldata and Not Exactly a Hash Tutorial (along with anything else in the Tutorials section that looks interesting). When you have worked your way through that lot come back and take another look at the sample code and ask a few specific questions.

    And no, you can't use arrays in place of hashes.

    True laziness is hard work
Re^3: Loop through two files in comparison
by Mr. Muskrat (Canon) on Aug 13, 2012 at 20:44 UTC

    Just to put GrandFather's comment about updating to a newer version of Perl into perspective...

    Perl 5.005_02 was released 14 years ago (1998-Aug-08).

      Thanks to you both! Where can I get the latest perl to download and install? I've looked at CPAN & assume this is the right place - http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz ?! Appreciate all advice.