|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Is it a bug in perl6 ?by TimToady (Parson) |
| on Aug 02, 2011 at 00:53 UTC ( [id://917945]=note: print w/replies, xml ) | Need Help?? |
|
You have a precedence error. [+] parses as a list operator, which is much looser than <=>. If you put parens around the first summation it will work as you expect
in any of the implementations.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||