Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Convert hex to string

by Ras (Acolyte)
on Dec 29, 2001 at 04:50 UTC ( [id://135024]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://135024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-16 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found