note
wade
<p>'main' can be a hash ref, or an array, or whatever -- differentiated by the character in front and what's been put in there (I'm a little shaky on the Perl internals). The code that you had, in order to print '1' needed to have a '$' in front of the 'main' in the first line.</p>
<p>Now, if you:</p>
<c>
use strict;
use warnings;
use diagnostics;
</c>
<p>Then you get a 'bareword' error without the '$' and you get a 'undefined' error with the '$' -- all as expected.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-665618">
--<br><i>[href://http://www.wadeguthrie.com|Wade]</i>
</div></div>
686400
686400