http://www.perlmonks.org?node_id=995721


in reply to swissprot assignment

Your question is very inadequate. As you do not provide input or output requirements, I will assume the input is the standard swissprot format, like for example http://www.uniprot.org/uniprot/P15976.txt.

Such UniProt records have a computer-generated format explained here: http://www.uniprot.org/manual/ or, in one page: here: http://web.expasy.org/docs/userman.html

Because it is such a strict format parsing is not too difficult, but in the absence of any output-format requirement, you'll have to figure that out by yourself.