There's the nifty way to go from hex code to characters:
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg
Is there something as nice to convert special characters into the hex code? I need to pass variables to a cgi script which may or may not include single quotes, @, #, $, commas, etc.
Is there something nifty to do it all at once, or do I need to check for each one individually?
Thanks much!
------------------
JPD
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg
Is there something as nice to convert special characters into the hex code? I need to pass variables to a cgi script which may or may not include single quotes, @, #, $, commas, etc.
Is there something nifty to do it all at once, or do I need to check for each one individually?
Thanks much!
------------------
JPD