Subject: | eval capture/capturex breaks print STDOUT |
working examples first print 1, prints 2, warns 3
D:\>perl -MIPC::System::Simple -le" print 1; eval { system
q(errorerror); }; print 2; warn 3"
1
'errorerror' is not recognized as an internal or external command,
operable program or batch file.
2
3 at -e line 1.
D:\>perl -MIPC::System::Simple=capture -le" print 1; eval { capture };
print 2; warn 3"
1
2
3 at -e line 1.
D:\>perl -MIPC::System::Simple=capture -le" print 1; eval { capture $^X,
qw( -e die ); }; print 2; warn 3"
1
Died at -e line 1.
2
3 at -e line 1.
NON-working examples first print 1, warns 3
D:\>
D:\>perl -MIPC::System::Simple=capture -le" print 1; eval { capture
q(errorerror); }; print 2; warn 3"
1
3 at -e line 1.
D:\>perl -MIPC::System::Simple=capturex -le" print 1; eval { capturex
q(errorerror); }; print 2; warn 3"
1
3 at -e line 1.
D:\>