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

7 lines
200 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
print 5 & 4,"\n"; # 101 & 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