in reply to Re^2: How do I use the map command for this?
in thread How do I use the map command for this?

> _DATA_

I can tell immediately that this doesn't run! 👎

You should check before posting, that's the "Correct" part in SSCCE!

And it's not clear to me which part has to be unique...

This

|Q51487|P-474-4|86-98,113-126,297-310,322-335

or this

CSLIPDYQRPEAPVAAAYPQGQAYGQNTGAAAVPAADIGWREFFRDPQLQQLIGVALE

or both.

This has not much to do with map, a HoA = Hash of Arrays with unique keys (well which one?) is enough.

Or probably a HoHoA depending on your perception of unique.

And of course also depending on your desired output order.

Please show more effort!

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery