in reply to Anybody use !!

return !!$return forces boolean context on $return (it may be an overloaded object). Furthermore, it guarantees the sub returns either 1 or the empty string.

Replies are listed 'Best First'.
Re^2: Anybody use !!
by ikegami (Patriarch) on Dec 29, 2010 at 22:11 UTC

    The value it returns for false is not (simply) an empty string. It`s also zero in numerical context.

    >perl -wE"say 0+!1" 0 >perl -wE"say 0+''" Argument "" isn't numeric in addition (+) at -e line 1. 0