XP is just a number | |
PerlMonks |
Re: Looking for regexp to convert hex numbers in textby staeryatz (Monk) |
on Nov 07, 2001 at 02:08 UTC ( [id://123702]=note: print w/replies, xml ) | Need Help?? |
From where I learned Perl, you can do this:
You can use pack "C" here, to convert to unsigned chars. I use this as a part of URL decoding in CGI scripts. This packs a pair of Hex characters into an unsigned character, using the substitute function.
In Section
Seekers of Perl Wisdom
|
|