Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: array processing

by inman (Curate)
on Dec 06, 2005 at 11:34 UTC ( #514409=note: print w/ replies, xml ) Need Help??

in reply to Re: array processing
in thread array processing

I preferred a regex over a split since we are only getting the user out of the data and we don't need any of the other values. You can increment the user's login count in one line inside the while loop:

$users{$1}++ if $line =~ /Login succeeded. User: (\w+)/i;

Comment on Re^2: array processing
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (15)
As of 2016-02-12 16:16 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (409 votes), past polls