in reply to Output to STDOUT and print last line to console

Loops is right about the redirection still being in effect.

Another way to print to console is:

print STDERR "$rows[-1]";