iza has asked for the wisdom of the Perl Monks concerning the following question:
but the default print is never ever restored to stdout (i mean, as long as the program runs !)open STDOUT, ">$file" || die "Cannot open file $file : $!"; system "diff $old_file $file"; select(STDOUT); # Restore default print to STDOUT close(STDOUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: stdout back to the normal ??
by jeffa (Bishop) on Nov 13, 2001 at 22:55 UTC | |
|
Re: stdout back to the normal ??
by davis (Vicar) on Nov 13, 2001 at 22:58 UTC | |
|
Re: stdout back to the normal ??
by chromatic (Archbishop) on Nov 16, 2001 at 00:28 UTC |