in reply to put only 2 elements in a line
Chromatic gave an excellent answer, but to answer your original question, this should work:
This will add 3 elements to the list that is the return value of map:print OUT map {"DR EMBL: ", join(';',(${$_}[1],${$_}[2])), "\n"} grep +{ ${$_}[0] eq "EMBL" } $entry->DRs->elements();
I tried to follow the specifications that you wanted, but they weren't exactly clear... If you need something more, just ask.
|
|---|