develooper Front page | perl.perl6.users | Postings from October 2018

bitwise paper?

Thread Next
From:
ToddAndMargo
Date:
October 3, 2018 03:57
Subject:
bitwise paper?
Message ID:
f2ddc3f4-581c-f4a2-e97d-060be38829d7@zoho.com
Hi All,

Does anyone know of a paper out in web land showing how to
do bitwise operations?  DuckDuckGo give me tons of hits
for Perl 5.

Trying to AND 0010 0000 with 0001 0000

$ p6 'my $v = 32 & 16; say $v;'
all(32, 16)

should give me 0000 0000.


I have a nice paper on Perl 5.  I don't think they the same?

$ perl -E 'my $v = 32 & 16; say $v;'
0

$ perl -E 'my $v = 32 | 16; say $v;'
48



Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About