Llew_Llaw_Gyffes has asked for the wisdom of the Perl Monks concerning the following question:
I'm in the habit of checking my code using perl -c -Mdiagnostics.
However, I'm also in the habit of typing, for example:
printf ("%-10s : %d\n", $foo, $bar[$i]);
I do it quite intentionally, because I'm used to thinking of printf() as a function, so I invoke it as one. I also feel it makes my code more readable. Unfortunately, diagnostics.pm does not share my coding style preferences, and insists on warning me that I've used printf as a function (why, yes, I did, imagine that) ... every single time I use printf.
Is there any way, short of modifying diagnostics.pm itself, to tell diagnostics.pm that I'm quite well aware I'm using printf as a function, and do not wish to be warned about it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Customizing diagnostics?
by ikegami (Patriarch) on Jul 20, 2005 at 04:34 UTC | |
|
Re: Customizing diagnostics?
by ysth (Canon) on Jul 20, 2005 at 04:34 UTC | |
|
Re: Customizing diagnostics?
by Errto (Vicar) on Jul 20, 2005 at 04:35 UTC | |
by ysth (Canon) on Jul 20, 2005 at 04:49 UTC | |
by Errto (Vicar) on Jul 21, 2005 at 00:45 UTC | |
by ysth (Canon) on Jul 21, 2005 at 01:48 UTC | |
by Llew_Llaw_Gyffes (Scribe) on Jul 20, 2005 at 20:16 UTC |