in reply to Re: Compare three columns of one file with three columns of another file in perl
in thread Compare three columns of one file with three columns of another file in perl

Thanks but it does not print any output

  • Comment on Re^2: Compare three columns of one file with three columns of another file in perl

Replies are listed 'Best First'.
Re^3: Compare three columns of one file with three columns of another file in perl
by NetWallah (Canon) on May 26, 2015 at 03:05 UTC
    This line in my code has a typo .. should be corrected to meet your reaquirements :
    $_->[3] eq $two[4] # should be: $_->[2] eq $two[4]
    The code was intended as a style and structure guide, not necessarily a complete solution.

            "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

      Thanks but it prints nothing to the standard output

        Please post a small sample of data from each file .. including one or two lines where you expect it to print, and one or two where it should NOT print. ALternatively, learn to use perl debug, to diagnose the issue.

                "Despite my privileged upbringing, I'm actually quite well-balanced. I have a chip on both shoulders."         - John Nash