sub booleanize ($) { shift ? 1 : 0 } $x = booleanize $y; [download]
In reply to Re: Better expression for $x = !!$y||0 by salva in thread Better expression for $x = !!$y||0 by borisz