- or download this
#!/usr/bin/perl -w
$log_file = "logfile";
...
open(STDOUT,'>-');
print "done\n";
close(STDOUT);
- or download this
#!/usr/bin/perl -w
$log_file = "logfile";
...
open(STDOUT,">&OLDOUT");
print "done\n";
close(OLDOUT);
- or download this
Testing 1.2.3... gets put into logfile and STDOUT
done gets put on STDOUT only