Packing and unpacking problem

Hi,
I want to get output as 0x23400000345...in the below example
how to get??..i tried out the following but unable to get the anser ...

please help...

$r=0x234;
$t=0x345;

$y=pack('L L',$t,$r);
$x1=unpack('L!',pack('P',$y));
printf("\nThe value is $x1");
[331 byte] By [rag84dec] at [2007-11-20 11:03:42]
# 1 Re: Packing and unpacking problem
I do not understand the question, would you kindly repost it in clear words. There are two separate variables which are being packed into one binary presentation. You have selected 'L' to pack them as "unsigned long" a 32bit value. If you try to get them into one that will obviously result in different value.

Besides in unpack('L!',pack('P',$y));, 'P' is not a valid/standard data type conversion argument.

regards
Ali Imran at 2007-11-10 3:56:10 >