<?xml version="1.0" encoding="windows-1252"?>
<node id="1007940" title="Re^2: Four annoying warnings" created="2012-12-08 19:59:55" updated="2012-12-08 19:59:55">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;p&gt;&lt;i&gt;&lt;c&gt;perl -M-warnings=uninitialized,numeric,once,void -E"123;$x=1;print $y; 'A'+0"&lt;/c&gt;&lt;/i&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But with [mod://strict] that already doesn't compile. When you use strict, &lt;c&gt;"once"&lt;/c&gt; usually becomes pretty irrelevant.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;i&gt;"(My point being that args to no warnings;can be meultiple: &lt;c&gt;no warnings qw[uninitialized numeric once void];&lt;/c&gt;"&lt;/i&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm aware of that. The four line block of the code was intended as four individual examples of how to disable specific warning categories, rather than a single block that should be copied and pasted into actual scripts.&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1007936</field>
<field name="parent_node">
1007938</field>
</data>
</node>
