Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How would I convert the other way around? I need to convert characters such as '&',':',etc to their '%' hex equivalents?$url_string =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Character conversion
by Roy Johnson (Monsignor) on Feb 22, 2006 at 17:08 UTC | |
by ikegami (Patriarch) on Feb 22, 2006 at 17:43 UTC | |
by Anonymous Monk on Feb 22, 2006 at 17:11 UTC | |
Re: Character conversion
by Fletch (Bishop) on Feb 22, 2006 at 17:07 UTC | |
Re: Character conversion
by vladb (Vicar) on Feb 22, 2006 at 17:09 UTC | |
Re: Character conversion
by CountOrlok (Friar) on Feb 22, 2006 at 17:07 UTC | |
by ikegami (Patriarch) on Feb 22, 2006 at 17:31 UTC |