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


in reply to Re: Defining substring matches
in thread Defining substring matches

until( eof( FASTA) {

You have two left parentheses but only one right parenthesis.

$seq =~ tr[\n][];

You are replacing the newline character with a newline character?

Replies are listed 'Best First'.
Re^3: Defining substring matches
by Anonymous Monk on Sep 21, 2013 at 02:19 UTC

    You are replacing the newline character with a newline character?

    Indeed, to count newline characters, but not save the count? Hmmm:)

Re^3: Defining substring matches
by BrowserUk (Patriarch) on Sep 21, 2013 at 02:38 UTC
    See above:
    NB: The above is untested code typed directly into my browser.

    Corrected.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.