Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: perl parsing

by cbtshare (Monk)
on Oct 04, 2017 at 22:44 UTC ( [id://1200693]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200693]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-23 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found