everyone seems to have missed that i replied already that i turned on my brain and figured it out :)<br><br><br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 4:32 PM, Mark Senn <span dir="ltr"><<a href="mailto:mark@ecn.purdue.edu">mark@ecn.purdue.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">    Bradley Andersen wrote:<br>
    > #!/usr/bin/env perl<br>
    ><br>
    > use strict;<br>
    > use warnings;<br>
    ><br>
    > use feature 'say';<br>
<div class="im">    ><br>
    > for my $i(1 .. 10) {;<br>
</div>    >     say $i;<br>
<div class="im">    > }<br>
    ><br>
    > ?? Why does that work?<br>
<br>
</div>From "<a href="http://perldoc.perl.org/perlsyn.html" target="_blank">http://perldoc.perl.org/perlsyn.html</a>":<br>
    The foreach keyword is actually a synonym for the for keyword,<br>
    so you can use foreach for readability or for for brevity.<br>
<br>
The "{;" doesn't cause problems because the statement between<br>
"{" and ";" is zero length and zero length statements are allowed.<br>
This code works fine<br>
    ;;;;;<br>
    say 'hello'<br>
    ;;;;;<br>
<br>
-mark<br>
</blockquote></div><br>