PDA

View Full Version : left shift problem


rag84dec
09-26-2007, 01:04 PM
Hi,

I need to shift 32 bits in perl.

Like $t=0xe1;
$r=$t<<32;

but it is not working since scalar can hold 32 bits ...can u tell me how to make it work???

i want to send this to postmessage($hnd,$msg,0,$r);

$r should contain yx position....x-32 bit y 32-bits

how to do????

KevinADC
09-27-2007, 12:18 AM
maybe:

$r=$t<<5

rag84dec
09-27-2007, 05:40 AM
Nope ,i want to shift 32 bits...not 5 bits