[...]

Original:

$sorted = reduce { push @{$_[0][$_[1]%2]}, $_[1]; $_[0] } [[],[]], @numbers;

Transformed, and made erroneous:

$sorted = reduce { push @{ ^0[ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers;

Transformed correctly:

$sorted = reduce { push @{ ^0->[ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers;

Damian writes:
> Note that the original @_-based *didn't* need one, because ->'s are
> optional between ] and [.

My apologies for any confusion arising. If the RFC goes another
'developing' version, would it be possible for you to include the ^0
based one?


cheers,
-- 
iain truskett, aka Koschei.                    <http://eh.org/~koschei/>
      I have always imagined that Paradise will be a kind of library.
      Jorge Luis Borges

Reply via email to