Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > perl.beginners > #19292
| Newsgroups | perl.beginners |
|---|---|
| Subject | Re: run cmd, writing output to log file |
| Date | 2021-10-07 12:16 -0400 |
| Organization | Still searching... |
| Message-ID | <87tuhskdy1.fsf@local.lan> (permalink) |
| References | <87tuhz5i5i.fsf@local.lan> <CA+20WcmgvwjQSE_6QBJ8-raKkYsQGZ9YkCsDdj9K7snfDSsu2A@mail.gmail.com> |
| From | hput3@fastmail.fm (hput) |
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.
Back to perl.beginners | Previous | Next — Previous in thread | Find similar | Unroll thread
run cmd, writing output to log file hput3@fastmail.fm (reader) - 2021-10-02 15:41 -0400 Re: run cmd, writing output to log file hput3@fastmail.fm (hput) - 2021-10-07 12:16 -0400
csiph-web