onegative has asked for the wisdom of the Perl Monks concerning the following question:
sub Logger() { my $message = $_[0]; if ( $message eq "" ) { return; } &Date(); $pdmgrdFile = "pdmgrd\.$LOG_NAME"; $pdmgrdLogPath = "$log$pdmgrdFile"; open(PDMGRD, ">>$pdmgrdLogPath") || die "Can't open logfile: $ +pdmgrdLogPath - $!\n"; print PDMGRD "$LOG_STAMP $message\n"; close(PDMGRD); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log STDERR
by kennethk (Abbot) on Apr 04, 2011 at 14:56 UTC | |
|
Re: Log STDERR
by anonymized user 468275 (Curate) on Apr 04, 2011 at 15:18 UTC | |
|
Re: Log STDERR
by chrestomanci (Priest) on Apr 04, 2011 at 15:43 UTC |