my %data; while () { next if /mcp/; chomp; my ($s, $n) = split; push @{ $data{$s} }, $n; }