in reply to Re: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?
in thread How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?

That's nice, but all > except the first one are missing...
  • Comment on Re^2: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?

Replies are listed 'Best First'.
Re^3: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?
by Anonymous Monk on Apr 11, 2013 at 13:24 UTC
    I meant that all sequences are starting with a > inside a fasta file. The code above works perfectly, but somehow it doesn't put the > back, except the first one...
      I would suggest reading about "$\" in perlvar.