in reply to Using perlbrew hides stdout

This is true of perl 5.10 on Ubuntu as well.

You are missing the "\n" that flushes stdout before stderr takes over - I'm sure others here will explain this better.

:~$ perl -e 'print q|foo|; die "Fark"' Fark at -e line 1. foo :~$ perl -e 'print qq|foo\n|; die "Fark"' foo Fark at -e line 1. :~$ perl -e '$|=1; print qq|foo|; die "Fark"' fooFark at -e line 1. :~$ perl -v This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

Replies are listed 'Best First'.
Re^2: Using perlbrew hides stdout
by hessef (Monk) on Apr 23, 2010 at 03:45 UTC
    Oops, yeah, this is a PEBKAC. Just tried one of my previously written programs with tons of say statements. They work. Sorry to inflict a too-hasty test case on you guys.