in reply to put only 2 elements in a line
foreach (grep $_->[0] eq 'EMBL') { print OUT "DR EMBL;$_->[0];$_->[1];-.\n"; } [download]
Update: Juerd caught a typo. Fixed!