Confirmed on 5.6.1, 5.8.0, 5.8.1, 5.8.3. Doesn't work on 5.8.4 and 5.8.5.
And I think it should not work, because $foo[$[] is the
first element and $foo[$[+1] is the second; I don't see how
$[ and $[+1 can refer to the same element.
All exercises have been tested with perl 5.8.*, and solutions do not necessarily have to work with any other version.
I take this to imply that solutions should work with all 5.8.* perls.
In reply to Re^2: How's your Perl? (II)
by mauke
in thread How's your Perl? (II)
by xmath
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |