# New Ticket Created by Zefram # Please include the string: [perl #126940] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126940 >
It seems to be intended (though it's not documented) that long bit shifts produce the mathematically correct answer: > 123 +> (1 +< 10) 0 but for some particularly large right shift distances, this doesn't work: > 123 +> (1 +< 63) 123 > 123 +> ((1 +< 64) - 100) 155921023828072216384094494261248 > 123 +> ((1 +< 64) - 1) 246 Presumably these shift distance values are being subjected to some bitwise reinterpretation after unboxing. -zefram