: Peter Scott <[EMAIL PROTECTED]>: > > =head2 Alternatives > > While C<splice> is frequently adduced as an alternative, this requires an > array instead of just a list, and is destructive to boot. > > =head1 IMPLEMENTATION > > The potential parsing difficulty I came up with was how to tell that > > foreach ($a,$b,$c) (@list) ... > > was not > > foreach $_ ($a, $b, $c) (@list) ... > > Graham tells me that the required parentheses and block braces make it > possible for the parser to be able to tell the difference. Um, while I don't particularly care much, was there some reason my suggested alternative syntax, C<for [$a,$b,$c] (@list)>, was not mentioned? If nothing else, it alleviates some of the parsing difficulty, since you still have a scalar expression between the C<for> and the C<(@list)>. -- John Porter