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


in reply to Counter Intuitive Code

Just wrap $x in int()?

$or |= $x ; #change to => $or |= int($x);