Subject: | Readonly numeric value appear as string to bitwise or (|) |
I found
Show quoted text
>perl -MReadonly -we "Readonly my $A => 8; Readonly my $B => 2; print
$A | $B;"
:
Instead,
Show quoted text>perl -we "my $A = 8; my $B = 2; print $A | $B;"
10
whereas
Show quoted text>perl -we "my $A = '8'; my $B = '2'; print $A | $B;"
:
I don't have a fix. Workaround: don't use Readonly!?
Robin