A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread O. P.
Hi. I'm very new to Perl and have a basic question. How can I convert special characters contained in a string to hexadesimal numbers. I'm trying to access a cgi program but the string I use with the post method contains quote marks, question marks, etc. and the program crashes. I have:

RE: RE: A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread O. P.
Thanks Tim. Your answer solves many problems to me. But I have a further question. Sometimes a question mark apears in the middle of a string like that: $string = /cgi-bin/search.pl?term=who?lang=english; where who? is a unit and the question mark is part of it. Although I try to escape the

RE: A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread Tim Fletcher
Sometimes a question mark apears in the middle of a string like that: $string = /cgi-bin/search.pl?term=who?lang=english; where who? is a unit and the question mark is part of it. Although I try to escape the question mark in who? and I get its hexadecimal number, I don't get the expected