On Tue, 2008-08-05 at 08:57 +0200, rafailowski wrote:
> Thx but adding __END__ return me this error, anyway the problem is solve 
> with a BEGIN block (cf.Rob Dixon).
> 
> $ perl test.pl --log-level=debug
> Name "main::STDLOG" used only once: possible typo at 
> /usr/local/share/perl/5.10.0/Log/StdLog.pm line 51
> 
> Thx again.
> rafailow.
> 

Adding __END__ will not create this warning.  It is because no other
statement has STDLOG in it.  When you use it, this warning shall go
away.  Example:

  print {*STDLOG} info "printing to STDLOG\n";


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to