develooper Front page | perl.beginners | Postings from October 2021

Re: run cmd, writing output to log file

Thread Previous | Thread Next
From:
hput
Date:
October 7, 2021 18:39
Subject:
Re: run cmd, writing output to log file
Message ID:
87tuhskdy1.fsf@local.lan
Ken Slater <kenslaterpa@gmail.com> writes:


[...] snip


>> -------       -------       ---=---       -------       -------
>> At first glace, looks like $log was used instead of instead of $fh.
>>

Andy Bach <afbach@gmail.com> writes:

> What Ken said:
>
> while (<$ch>) {
>     print $fh "$PaddedDateStr $_";
>   }

Thx to both of you.  And indeed the filehandle works.

Having different troubles now with that fixed but I'm wallowing around
with it a while ... maybe get it right before bothering the list again.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About