in reply to Re: compare data between two files using Perl
in thread compare data between two files using Perl

Hey, I wanted to know more about: while (my ($key, $val) = each %seen) { how to interpret this. I looked at perlvar, not much idea. thanks, Hashmat
  • Comment on Re^2: compare data between two files using Perl

Replies are listed 'Best First'.
Re^3: compare data between two files using Perl
by svenXY (Deacon) on Dec 16, 2008 at 13:04 UTC
    each() will help you with your question. To put it short: each() returns a list of the next key/value pair and uses memory very efficiently.
    Regards,
    svenXY
      Right. But how do I split $key to get my original keys ?
      Right. But I wanted to know from $value how do I get the original tuples ?
      Sorry, its rather I wanted to know from $key how do I get the original tuples ?