in reply to Re^3: Net::OpenSSH loosing lines ins reply
in thread Net::OpenSSH loosing lines ins reply

Which PerlIO layers are attached to the file handlers?
use Data::Dumper; my $tmpcnt=0; open TWO, ">", "./two.out"; print STDERR Dumper [PerlIO::get_layers(\*STDOUT)]; print STDERR Dumper [PerlIO::get_layers(\*TWO)]; foreach (@rawout) { print "$tmpcnt: ". $_; print TWO "$tmpcnt: ". $_; $tmpcnt++; }

Replies are listed 'Best First'.
Re^5: Net::OpenSSH loosing lines ins reply
by Andy16 (Acolyte) on Jun 04, 2014 at 12:19 UTC
    $VAR1 = [ 'unix', 'perlio' ]; $VAR1 = [ 'unix', 'perlio' ];


    thinking the direction: is OpenSSH fiddling around with "my" STDOUT? Feels like I cannot print to STDOUT for a very short time...
      No.

      Can you use the diff program to show the differences between both versions?

      diff -u $ONE $TWO
        yes - I did. There is just a block of lines missing. Easy to find even in STDOUT as I added the line numbers.