Jeff Abrahamson on Sat, 12 Oct 2002 22:05:36 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

for my ...


I've often used, without problem, the construct

    for my $foo (@bar) {
        do_stuff($foo);
    }

I once saw a version of perl that wasn't happy with this (5.00x.y, I
think). I saw another today (5.6).

I thought this was supposed to be a perfectly legal and reasonable
thing to do. Am I mistaken or confused? I hate having to say

    my $foo;
    for $foo (@bar) {
        do_stuff($foo);
    }

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**