|
|
|
|
|
by omoikane
162 days ago
|
|
I didn't know ~- and -~ had a name, I have been using them in many (non-production) places where I wanted to save 2 bytes. But looks like Perl's implementation is more limited compared to other languages: % perl -e 'print ~-(0), "\n"'
18446744073709551615
% ruby -e 'print ~-(0), "\n"'
-1
https://metacpan.org/dist/perlsecret/view/lib/perlsecret.pod... |
|