my %data; while () { if (/^-- (\w+):(.*)/) { push @{$data{$1}}, split " ", $2; } }