Outputs usernames and number of logins:while (<errorlog>) { $logins{$1}++ if /Login succeeded\. User: ([^,]+)/; } print map { "$_: $logins{$_}\n" } sort keys %logins;
abc: 1 qwr: 1 sa: 6 xyz: 1
In reply to Re: array processing
by holli
in thread array processing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |