in reply to Refomating a large fasta file...

change your input record separator to >
{ local $/ = ">"; while (<FILE>) { ... } }

Replies are listed 'Best First'.
Re: Re: Refomating a large fasta file...
by Anonymous Monk on Nov 19, 2003 at 21:04 UTC
    When you change that record separator to ">", that means the first record will be empty. (One of the later responses handles that case). More importantly, the last chunk of data is beyond the last record separator and there is no record separator at the End Of File (EOF). Will that last chunk be picked up at all? (I'm not exactly sure how record separators and file reads work for that last chunk.)