in reply to Re: perl parsing
in thread perl parsing

one issue is that Brian has 3 devices, you code prints one device ipad 2001 device ipad 2001 device ipad 2001

Replies are listed 'Best First'.
Re^3: perl parsing
by AnomalousMonk (Archbishop) on Oct 05, 2017 at 00:11 UTC

    How could you change Marshall's solution or perhaps poj's here to give you the results you want?


    Give a man a fish:  <%-{-{-{-<

Re^3: perl parsing
by Marshall (Canon) on Oct 05, 2017 at 17:50 UTC
    Well I figured that these were "dupes". Consider what would happen if $devices{$device}=1; was changed to $devices{$device}++; and what that would mean for adapting the printout of the hash to show the number of identical devices.