in reply to Re: Tyring to grep array of hashes
in thread Tyring to grep array of hashes

Hi lnickt

I like the hash idea, but this example doesn't seem to be working. it should result in GIANTS being the only missing team.

Replies are listed 'Best First'.
Re^3: Tyring to grep array of hashes
by hippo (Archbishop) on Feb 07, 2017 at 17:15 UTC
    it should result in GIANTS being the only missing team.

    As indeed they are:

    $ ./1181308.pl MISSING: LEAGUE: NFL TEAM: GIANTS $

    Perhaps you have downloaded it incorrectly?

Re^3: Tyring to grep array of hashes
by 1nickt (Canon) on Feb 07, 2017 at 17:13 UTC

    Make sure to copy and paste the source using the download link (which displays as [d/l] to the right of the post at the bottom), to avoid any browser/html oddities or typos. The code runs as follows for me:

    $ perl 1181302.pl MISSING: LEAGUE: NFL TEAM: GIANTS


    The way forward always starts with a minimal test.
Re^3: Tyring to grep array of hashes
by dirtdog (Monk) on Feb 07, 2017 at 17:25 UTC

    My apologies ...it is working

    Thanks!