<br><br>
<div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">djgoku</b> &lt;<a href="mailto:djgoku@gmail.com">djgoku@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 9/19/07, Eric Wilhelm &lt;<a href="mailto:scratchcomputing@gmail.com">scratchcomputing@gmail.com</a>&gt; wrote:
<br>&gt; # from djgoku<br>&gt; # on Wednesday 19 September 2007 00:22:<br>&gt;<br>&gt; &gt;warnings are pretty early on seems to start on page 24 with &#39;perl -w<br>&gt; &gt; script.pl&#39;<br>&gt;<br>&gt; As of (roughly) 
v5.6.2, -w is different though.&nbsp;&nbsp;See perlrun and then<br>&gt; perllexwarn.&nbsp;&nbsp;With &#39;-w&#39;, you&#39;re enabling warnings globally -- on all of<br>&gt; the modules being loaded.&nbsp;&nbsp;This is sometimes nice to check, but (e.g
.<br>&gt; in tests) not if the modules weren&#39;t tested with warnings enabled.<br><br>I was meaning both &#39;use (strict and warnings)&#39; from inside the script.<br>Like the code fragments you posted.<br>_______________________________________________
<br>kc mailing list<br><a href="mailto:kc@pm.org">kc@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a><br></blockquote></div>
<div><br>Thanks for the feedback guys! Just to answer some questions out there, I am familiar with the -w switch as well as strict. The class that I am taking is through Oreilly Media and they&nbsp;use the <em>Learning Perl</em>
 book from Oreilly except that the instructor has not covered warnings or strict&nbsp;yet. Where as in the <em>Perl by Example</em> book that I was using prior to the class&nbsp;mentioned this early. </div>
<div>&nbsp;</div>
<div>In this exercise the instructor was asking that&nbsp;I use the pre-defined environment variable hash that is discussed in this lesson, which is&nbsp;<font face="courier"><font color="blue">print %ENV;</font></font> so that is why I created the script as a hash originally. I&#39;m just confused as to why it only prints out 3 and skips every other one.
</div>