in reply to Re^5: converting binary to decimal
in thread converting binary to decimal
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
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: converting binary to decimal
by tybalt89 (Monsignor) on Jun 07, 2025 at 18:03 UTC | |
by LanX (Saint) on Jun 07, 2025 at 23:11 UTC | |
by tybalt89 (Monsignor) on Jun 08, 2025 at 00:19 UTC | |
by LanX (Saint) on Jun 08, 2025 at 11:06 UTC | |
by tybalt89 (Monsignor) on Jun 08, 2025 at 14:21 UTC | |
| |
by harangzsolt33 (Deacon) on Jun 08, 2025 at 15:32 UTC | |
|