in reply to Counting In a Log File from Multiple Variables

That looks like a job for a HoH (hash of hashes).
${$username}{$reason}++
The docs are very good: perlreftut, perldsc and perllol.