in reply to Constructing 32-bit hexadecimal integers
Here's a way:
perldoc -f hexprint hex(c030), "\n"; # prints "49200"
Update: actually, on closer examination, you want to actually catenate 8-bit values into a big hex string. If this is the case, jeroenes has answered that above... I worked on a program awhile back in which I used something like:
... to get bytes that were raw hex values to display as an ASCII representation of hex.$aschex.=uc(sprintf("%02x",ord($rawhex)));
--
Me spell chucker work grate. Need grandma chicken.
In Section
Seekers of Perl Wisdom