in reply to Re: sorting headers in a file
in thread sorting headers in a file
Your code relies on a number of implicit assumptions:
- Using a hash implies that the ">or..." bits are unique. If two or more identical appear, your code would lose data.
- You also assume that blank lines are of no significance.
- If there is a multiline sequence, you will only store the last line.
In Section
Seekers of Perl Wisdom