At 02:57 PM 8/29/00 -0400, John Porter wrote:
>But as for the semantics... how does perl handle this:
>
>         for ($x,$y,$z) (@a1,@a2) { ... }
>and
>         for ($x,$y,$z) (@a1,@a2,@a3,@a4) { ... }
>
>Making the case where the number of iterators == the number of arrays
>special may not be so good.  Not to mention
>
>         for ($x,$y,$z) (@a1,@a2,4..12,@a4) { ... }
>
>Probably we'll have to say that the user must explicitly zip if that
>is what is desired.

Yes, please.  I view the flattening of lists as a feature, not a bug, and 
it has made Perl a lot easier to understand IMHO.

--
Peter Scott
Pacific Systems Design Technologies

Reply via email to