in reply to Counter Intuitive Code

FWIW, seems nobody mentioned it yet, but there is a feature to make bitwise or operate on numbers only.

see perlop#Bitwise-Or-and-Exclusive-Or

#!/usr/bin/perl use strict; use warnings; use feature 'bitwise'; no warnings 'experimental::bitwise'; my $or; for my $x (@ARGV){ $or |= $x ; } printf("%d\n", $or); exit;
C:/Perl_524/bin\perl.exe d:/pm/bitwise_or.pl 16 8 24

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

update

and I agree it's counter intuitive because it's normal in Perl to have dedicated operators and expect automatic type casting. Here Perl is rather acting like JS.