[ABE.pm] 'for' statement Q

Walt Mankowski waltman at pobox.com
Fri Aug 15 11:13:42 PDT 2008


On Fri, Aug 15, 2008 at 01:59:31PM -0400, Faber J. Fedor wrote:
> On 15/08/08 13:37 -0400, Walt Mankowski wrote:
> > If you're not familiar with that syntax, you've got a lot of catching
> > up to do before you teach this class... :)
> 
> Nope, never seen that syntax.  Everything I've ever seen says the for
> syntax has three parts.  I'm even looking at a course book that says the
> semi-colons are _required_.

They're required for C-style for loops, but you usually don't need to
use C-style for loops in Perl.  The syntax with the single list
argument is much more common.

Walt


More information about the ABE-pm mailing list