Peter Scott wrote:
>Graham Barr once allowed as how he thought it would be neat if you could say
>
>       for my($x, $y, $z) (@list) { ... }

ObLanguageMinimalist:

Um. Is this so frequently-used that the above syntax is preferable to:

    while ( ($x, $y, $z) = splice (@list, 0, 3) )   {...}

? (notwithstanding the destructive nature of splice)

 ----------------------------------------------------------------------
 Eric J. Roode,  [EMAIL PROTECTED]           print  scalar  reverse  sort
 Senior Software Engineer                'tona ', 'reh', 'ekca', 'lre',
 Myxa Corporation                        '.r', 'h ', 'uj', 'p ', 'ts';

Reply via email to