Re: Encoding text

2002-09-24 Thread Felix Geerinckx
on Sun, 22 Sep 2002 07:13:28 GMT, [EMAIL PROTECTED] (Mike Craig) wrote: > Hi, > > I want to encode a string using the translate function. [...] > Your suggestions will be appreciated. http://search.cpan.org/author/MRJC/cvswebedit-v2.0b1/cvs- web/lib/URI/Escape.pm -- felix -- To

Encoding text

2002-09-21 Thread Mike Craig
Hi, I want to encode a string using the translate function. decoding is well documented by $value =~ tr/+/ /; $value = s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; what i would like to do is to use the translate command to replace just the special