in reply to Passing filename to Log::Std
or call import yourself.our $filename; BEGIN { $filename = '/tmp/mylogfile'; } use Log::StdLog { file => $filename }; print {*STDLOG} warn => 'Works fine!!!';
my $filename = '/tmp/mylogfile'; require Log::StdLog; Log::StdLog->import({ file => $filename }); print {*STDLOG} warn => 'Works fine!!!';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing filename to Log::Std
by bowei_99 (Friar) on Apr 12, 2006 at 21:40 UTC | |
by chromatic (Archbishop) on Apr 12, 2006 at 21:51 UTC | |
by borisz (Canon) on Apr 12, 2006 at 21:47 UTC | |
by bowei_99 (Friar) on Apr 12, 2006 at 22:33 UTC |