http://qs321.pair.com?node_id=11113048


in reply to Re^2: Find element in array
in thread Find element in array

Take a look at that warning message:

Sequence 'TAAGAACAATAAUAACAA' in line 2 has invalid character after 12 + at parse_dna.pl line 7, <DATA> line 2. ^^^^^^ + ^^^^^^

The warn function already includes $. in its output, unless your message ends in "\n".

Replies are listed 'Best First'.
Re^4: Find element in array
by LanX (Cardinal) on Feb 17, 2020 at 14:42 UTC
    > The warn function already includes $.

    I've been aware of this, but how can we know if the OP will use warn for logging or doesn't prefer to push the line-numbers in an array?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery