Use URI::Escape or CGI's built-in escape function to do this.
use CGI; my $q = CGI->new(); my $string = "What a lovely function!"; $string = $q->escape($string); # or using the procedural interface... use CGI qw(:param); my $string = "What a lovely function!"; $string = CGI::escape($string);
HTH </code>
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: URL escaping
by arturo
in thread URL escaping
by thealienz1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |