![]() |
perl-unicode
|
perl pack function2002-06-25 09:20:29
Hi,
if i do the following:
my $tmp_char= pack("U", 9786);
#9786 is the decimal equivalent of the hex: 263A
then $tmp_char now contains the Unicode character "WHITE SMILING FACE"
Q: Does pack have to take a deminal integer - or can i somehow pass a hex
value to it?
ie something like: my $tmp_char= pack("U", 263A);
thanks for your time.
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|
|
||||||||||||||||