Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Before running this line the debugger said:$prevFlagBin |= $flagBin;
After it said this:x ($prevFlagBin, $flagBin) 0 3221225472 1 3758096384
Also in the debugger I found:0 '37792;77?6' 1 3758096384
Correct answer!DB<4> x 3221225472 | 3758096384 0 3758096384
So I figured it was going into character context.DB<6> x '3221225472' | '3758096384' 0 '37792;77?6'
And that worked.DB<8> x 0 | '3221225472' | '3758096384' 0 3758096384
Which works.$prevFlagBin = 0 | $prevFlagBin | $flagBin;
Comments appreciated.
-HarveyK
update (broquaint): changed plain formatting => <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bug in perl bitwise or??
by shemp (Deacon) on May 21, 2003 at 21:29 UTC | |
by Anonymous Monk on May 21, 2003 at 21:56 UTC | |
by tye (Sage) on May 21, 2003 at 22:42 UTC | |
by shemp (Deacon) on May 21, 2003 at 22:31 UTC | |
|
Re: Bug in perl bitwise or??
by leriksen (Curate) on May 22, 2003 at 00:46 UTC | |
by diotalevi (Canon) on May 22, 2003 at 12:51 UTC |