http://www.perlmonks.org?node_id=1019520


in reply to Is this reliable?

Yes it's safe!

A boolean will be interpreted as 1 or 0 in a numeric context!

Cheers Rolf