in reply to Can't get a simple log creator to work!
#!/usr/bin/perl use 5.010; use strict; use warnings; my $fn_log = 'perlogfile.rtf'; open(my $fh_log, '>>', $fn_log) or die("Can't append to log file \"$fn_log\": $!\n"); print($fh_log $_) while <STDIN>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't get a simple log creator to work!
by aquinom85 (Initiate) on Feb 23, 2010 at 05:40 UTC | |
by ikegami (Patriarch) on Feb 23, 2010 at 16:10 UTC | |
by ikegami (Patriarch) on Feb 24, 2010 at 05:31 UTC |