in reply to Re: Convert hex to string
in thread Convert hex to string

no. I'm tring to help some one out on there project and i though that this would work:

$hex = 9120;
$string = sprintf("%s", hex($hex));
print "$string \n";

but it doesn't. I still need help.

Replies are listed 'Best First'.
Re: Re: Re: Convert hex to string
by Juerd (Abbot) on Dec 29, 2001 at 04:52 UTC
    That doesn't make sense. Your source is 9120, but what do you want?
    Are you sure this isn't homework?

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

      Well i'm trying to convert that hex number "9210" into a string. And believe me this is not homework. Some one in my office wants to know if this can be done.