Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Bareword warning question

by bloonix (Monk)
on Jul 13, 2007 at 01:18 UTC ( [id://626348]=note: print w/replies, xml ) Need Help??


in reply to Bareword warning question

Hello Akoya,

I have just a little suggestion for this code part:
print $LOG _timestamp(), q{ }, join ':', $0, $msg_level, $msg;
Maybe you like to use something like
use Log::Handler; my $log = Log::Handler->new( filename => $logfile, mode => 'append', timestamp => $your_format, prefix => "$0:<--LEVEL-->:" ); $log->warning($msg); # or another msg_level
Kind regards, bloonix

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://626348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found