Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: Better expression for $x = !!$y||0by TimToady (Parson) |
on Apr 20, 2005 at 00:30 UTC ( [id://449463]=note: print w/replies, xml ) | Need Help?? |
Just to let you know we fixed this, in Perl 6 this is written:
And the standard operators like == are expected to return 0 or 1 when a boolean result is expected. (Boolean context will still accept any true value, as in Perl 5, and the short-circuit operators still return one of the input values as the "true" value.), Yes, you can still overload these to return something other than 0 or 1, but it would be construed as antisocial.
In Section
Seekers of Perl Wisdom
|
|