in reply to Re: Skip chomp?
in thread Base sequence length in fasta format file

NL len isn't going to be an issue, as long as he doesn't binmode the filehandle.

CRLF pairs will be translated to a single LF on input, and translated back going the other way.

But if you prefer to chomp then add the newline, that works too :)
--
Mike

  • Comment on NL len not an issue, at least for Win32

Replies are listed 'Best First'.
Re: NL len not an issue, at least for Win32
by demerphq (Chancellor) on Apr 25, 2002 at 15:20 UTC
    Er. Well a couple of test prove you right.

    But also prove me right: (phew ;-)

    print length <DATA>,$\; print length <DATA>,$\; __DATA__ ABCDEF ABCDEF
    outputs:
    7 6
    So there still could be an issue here... :-)

    Although granted it isnt the one I was harping on about...

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.