<?xml version="1.0" encoding="windows-1252"?>
<node id="1007938" title="Re: Four annoying warnings" created="2012-12-08 19:37:33" updated="2012-12-08 19:37:33">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;Hm. Each of those warnings catch many of my most frequent typos and brain farts in first drafts of code.

&lt;p&gt;However,I do agree with you that there are many situations where -- at least some of them -- are better ignored than coded around. 

&lt;p&gt;But, your "just disable them" code block makes it look more of a chore than is necessary:&lt;code&gt;
C:\test&gt;perl -M-warnings=uninitialized,numeric,once,void -E"123;$x=1;print $y; 'A'+0"

C:\test&gt;perl -Mwarnings=uninitialized,numeric,once,void -E"123;$x=1;print $y; 'A'+0"
Useless use of a constant in void context at -e line 1.
Useless use of addition (+) in void context at -e line 1.
Name "main::y" used only once: possible typo at -e line 1.
Name "main::x" used only once: possible typo at -e line 1.
Use of uninitialized value $y in print at -e line 1.
Argument "A" isn't numeric in addition (+) at -e line 1.
&lt;/code&gt;
&lt;p&gt;(My point being that args to &lt;c&gt;no warnings;&lt;/c&gt;can be multiple:&lt;c&gt;no warnings qw[uninitialized numeric once void];&lt;/c&gt;


&lt;p&gt;The one that really bugs me is:&lt;code&gt;
C:\test&gt;perl -wE"say (1+2)*3"
say (...) interpreted as function at -e line 1.
Useless use of multiplication (*) in void context at -e line 1.
3
&lt;/code&gt;



&lt;p&gt;But it is not the warning that bugs me, but rather the interpretation. 

&lt;P&gt;There is -- IMO -- absolutely no logic for allowing a space between a function name and its argument grouping parens. None whatsoever.

&lt;P&gt;If the syntax required that if parens are used on a function call, the left paren &lt;i&gt;must&lt;/i&gt; be abutted to the function name, that annoyance would go away.

&lt;p&gt;I also wish that there were a &lt;c&gt;:nocommon&lt;/c&gt; group label; though we could probably argue for a week about which should, and should not, be included :)

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;p align=right&gt; [http://thebottomline.cpaaustralia.com.au/|RIP Neil Armstrong]&lt;/p&gt;&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;
</field>
<field name="root_node">
1007936</field>
<field name="parent_node">
1007936</field>
</data>
</node>
