in reply to Re^5: Better expression for $x = !!$y||0
in thread Better expression for $x = !!$y||0

Except Perl 5 makes no such guarantee. A lot of the built-ins return "" or 1 instead, for instance.

Replies are listed 'Best First'.
Re^7: Better expression for $x = !!$y||0
by ysth (Canon) on Apr 21, 2005 at 19:13 UTC
    Do you mean sv_yes or sv_no (which has PV "" and IV 0)? Or the very few things that actually return either "" or 0 instead of sv_no? IIRC correctly, there are good reasons for those odd cases.