Subject: | Bug with Log::StdLog v. 0.0.3 |
Date: | Wed, 30 Aug 2006 14:49:13 +0200 |
To: | bug-log-stdlog [...] rt.cpan.org |
From: | Christian Tønsberg <cht [...] cvt.dk> |
Hi,
Thank you for (yet another) useful module!
I belive I have discovered a bug. It can be demonstrated by the
following commandline invocations of perl:
$ perl -e' use Log::StdLog { file=>"foo" }; print {*STDLOG} error=>"bar";'
$ perl -e'my $f="foo"; use Log::StdLog { file=>"$f" }; print {*STDLOG} error=>"bar";'
$ perl -e'my $f="foo"; use Log::StdLog { file=>$f }; print {*STDLOG} error=>"bar";'
The first works fine.
The second makes Log::StdLog report
Unable to open log file '' at -e line 1
The third makes Log::StdLog report
Use of uninitialized value in open at /usr/local/share/perl/5.8.4/Log/StdLog.pm line 90.
Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.8.4/Log/StdLog.pm line 90.
Unable to open log file '' at -e line 1
I cannot find anything in the documentation for Log::StdLog that
lead me to belive that filenames cannot be passed as in the second
and third example above.
I hope this can be resolved.
Thanks in advance.
Cheers,
Christian
--
Christian Tønsberg, M.Sc. Technical Project Coordinator
Technical Knowledge Center of Denmark (http://www.dtv.dk/)
Technical University of Denmark (http://www.dtu.dk)
Contact: (+45)45257437 | ct@dtv.dk | ct@cvt.dk | cht@cvt.dk