Re: Puzzled by ouput from this script

2013-09-11 Thread Rob Dixon
On 11/09/2013 23:04, Harry Putnam wrote: Posted below is a shortened down version of a larger script that tries to show the phenomena I'm seeing and don't understand. open my $fh, '>>', $log or die "Can't open <$log>: $!"; print " $dtf START $rsync $shortargs\n $longargs\n $src/ $dst/\n

Re: Puzzled by ouput from this script

2013-09-11 Thread Robert Wohlfarth
On Wed, Sep 11, 2013 at 5:04 PM, Harry Putnam wrote: > while(<$cmdh>) { > print $fh; > print; > I believe this code prints the file handle. Try this: while(<$cmdh>){ print $fh $_; print; -- Robert Wohlfarth

Puzzled by ouput from this script

2013-09-11 Thread Harry Putnam
Posted below is a shortened down version of a larger script that tries to show the phenomena I'm seeing and don't understand. I'm running rsync from a perl script so I first thought the output was from rsync, but as I tinkered around I began to notice that as I changed things around a bit, the lin

Re: Puzzled by ouput from this script

2013-09-11 Thread Harry Putnam
Robert Wohlfarth writes: > On Wed, Sep 11, 2013 at 5:04 PM, Harry Putnam wrote: > > >> while(<$cmdh>) { >> print $fh; >> print; >> > > > I believe this code prints the file handle. Try this: > while(<$cmdh>){ > print $fh $_; > print; Egad! Yes, that is what's happening... thanks. --