in reply to
Counting In a Log File from Multiple Variables
That looks like a job for a HoH (hash of hashes).
${$username}{$reason}++
[download]
The docs are very good: perlreftut, perldsc and perllol.
Comment on
Re: Counting In a Log File from Multiple Variables
Download
Code
In Section
Seekers of Perl Wisdom