ungalnanban has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to get output as 0x23400000345....
in the below example
How to get?
i tried out, but unable to get the answer
I didn't get constant output
in the below example
How to get?
i tried out, but unable to get the answer
$r=0x234; $t=0x345; $y=pack('L L',$t,$r); $x1=unpack('L!',pack('P',$y)); printf("\nThe value is $x1");
I didn't get constant output
--sugumar--
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: packing and unpacking
by almut (Canon) on Mar 12, 2010 at 09:40 UTC | |
by ungalnanban (Pilgrim) on Mar 12, 2010 at 10:00 UTC | |
by almut (Canon) on Mar 12, 2010 at 10:22 UTC | |
by ungalnanban (Pilgrim) on Mar 12, 2010 at 12:26 UTC | |
by almut (Canon) on Mar 12, 2010 at 13:00 UTC | |
by spadacciniweb (Curate) on Mar 12, 2010 at 10:14 UTC | |
by ungalnanban (Pilgrim) on Mar 12, 2010 at 10:24 UTC |
Back to
Seekers of Perl Wisdom