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

7 lines
200 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +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