Perl: the Markov chain saw | |
PerlMonks |
Re: Perl::Critic policy for common Log::Log4perl mistakeby mje (Curate) |
on Nov 10, 2011 at 16:07 UTC ( [id://937401]=note: print w/replies, xml ) | Need Help?? |
I wouldn't bother doing the check first, I just change the code to:
then I believe it does not get expanded until inside Log::Log4perl when it decides to log or not. So now all you need is a Perl Critic rule for using sub {} in logging ;-)
In Section
Seekers of Perl Wisdom
|
|