programming-examples/perl/Basics/Bitwise Or Operators in action.pl

8 lines
200 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
print 1 | 4,"\n"; # 001 & 100
print 5 | 0,"\n"; # 101 | 000
print 4 | 0,"\n"; # 100 | 000
print 0 | 4,"\n"; # 000 | 100
print "=" x 10,"\n"; # print 10 equal signs