mjd-perl-pm on Sat, 12 Oct 2002 22:29:09 -0400


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

Re: 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).

'for my' was introduced in 5.6.0.  Before that, it was illegal.  If
you got an error message from 5.6.0, it was because of some other
error.

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


  • Follow-Ups:
  • References:
    • for my ...
      • From: Jeff Abrahamson <jeff@purple.com>