in reply to Interesting Mistake
Your match doesn't match $_ and so returns false, which is complemented to 0xffffffff, which, in decimal, prints as 4294967295.
Try
or, for 64-bit perl:perl -e 'print ~0'
perl -e 'print ~0 & 0xffffffff'
Update: Added code examples & link to ~ in perlop
|
|---|