|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^6: converting binary to decimalby LanX (Saint) |
| on Jun 07, 2025 at 17:35 UTC ( [id://11165307]=note: print w/replies, xml ) | Need Help?? |
|
> I even have problems to reproduce my own explanation in the debugger. And the reason is that it's supposed to be a "bitstring" not "numeric bit" operation. see https://perldoc.perl.org/perlop#Bitwise-String-Operators hence replacing | with |. under use feature "bitwise" will stop doing hard to predict things, even after refactoring this golfing code. ugh...
Cheers Rolf
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||||||||||||||||||||||||