[Israel.pm] C style for loop

Stefan Hornburg (Racke) racke at linuxia.de
Thu Feb 23 23:41:30 PST 2012

On 02/24/2012 08:31 AM, sawyer x wrote:
> On Fri, Feb 24, 2012 at 9:21 AM, Stefan Hornburg (Racke)
> <racke at linuxia.de>wrote:
>> On 02/24/2012 04:16 AM, Shmuel Fomberg wrote:
>>> Wow, I just wrote a C style for-loop, (as oppose to foreach loop) and I
>>> realized I haven't written one for a long long time.
>>> Weird.
> Yesterday I looked at my "Red Flags in Programming" slides (the first Perl
> talk I ever gave) and it mentions not to do C-style for loops. :)

How do you write for loops without C-style where you need a running
index inside the loop code?


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the Perl mailing list