Is it necessary to use hashes or more complicated data structures?
What about simple array?
my @times;
while (<LOGFILE>){
if (/\b$Autosys/) {
push @times, substr($_, 0, 20);
}
}
Update: yes, you can downvote me, 'cause HoA is the best way here. I misunderstand post. Shame on me.