melguin has asked for the wisdom of the Perl Monks concerning the following question:
At the end of the script it does this:
which results in a line previously previously printed to be written to the file after the Exit line. However, if I do this:print FILE (scalar localtime)." ## Exit\n"; close FILE;
everything is fine. It's probably not a good idea to exit before the close, so I'm looking for another way to get the same results.print FILE (scalar localtime)." ## Exit\n"; exit(); close FILE;
many thanks great holders of wisdom.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output caught in memory
by Wookie (Beadle) on Jul 26, 2001 at 20:33 UTC | |
|
Re: output caught in memory
by dragonchild (Archbishop) on Jul 26, 2001 at 20:38 UTC | |
|
(jeffa) Re: output caught in memory
by jeffa (Bishop) on Jul 26, 2001 at 20:34 UTC | |
|
Re: output caught in memory
by melguin (Pilgrim) on Jul 26, 2001 at 20:43 UTC |