in reply to How to trace a dying process
It will work most of the time, terminating when '<>' fails with undef (reaches the end of file). However when the while loop encounters a '0' by itself, it would fail as well (while loop fails on undef or '0').while (<>) { ... }
This while loop will only quit when the input stream really ends.while (defined <>) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to trace a dying process
by ctilmes (Vicar) on Sep 06, 2003 at 14:23 UTC | |
|
Re: Re: How to trace a dying process
by Notromda (Pilgrim) on Sep 08, 2003 at 23:35 UTC |