in reply to Re: Autovivification in perl
in thread Autovivification in perl

Well,
push @{ $at_line{$string} //= [] }, $line_number;
or even
push @{ $at_line{$string} ||= [] }, $line_number;
would do.