[ABE.pm] 'for' statement Q
Ricardo SIGNES
perl.abe at rjbs.manxome.org
Fri Aug 15 12:10:40 PDT 2008
* "Faber J. Fedor" <faber at linuxnj.com> [2008-08-15T14:40:57]
> > I think maybe you need to do some last-minute cramming with the camel
> > book, or at least the llama. This is all pretty basic stuff.
>
> I'm looking at the Nutshell book and the llama book. Both treat the for
> and foreach as different control structures.
Nutshell kinda sucks. Llama 4 is pretty clear. It introduces 'foreac LIST' on
page 46, then three-part for on page 142, and immediately after explaining
three-part for it has a section explaining that for/foreach are interchangeable
and that "real world" Perl programmers will always write for, because it saves
four keystrokes.
I don't know about Llama 1-3 or 5.
--
rjbs
More information about the ABE-pm
mailing list