>>>>> "Paul" == Paul Tremblay <[EMAIL PROTECTED]> writes:

Paul> Is there a way to convert a decimal number to a hexidecimal number in
Paul> perl? 

Paul> I have expressions like this:

Paul> \u8195\'20
Paul> \u9824\'3f

Paul> The number after the u is a decimal number that needs to be converted
Paul> to hexidecail. The number after the second slash needs to simply be
Paul> elimianted. Thus, the two lines above should look like:

Paul> &#x2003;
Paul> &#x2660;

Why?  &#8195; &#9824; is prefectly valid, unless you're talking about
something besides XML or HTML.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to