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