in reply to Using perlbrew hides stdout
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 |