4 $_[0] =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;
8 $_[0] =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
21 if(scalar @ARGV > 0) {
23 print $fgv->(join " ", @ARGV);
27 print $fgv->($_) while(<STDIN
>);
37 url_encode - Escape URL-unsafe chars in text given either in parameters or in stdin by percent-encoding
39 url_decode - Unescape percent-encoded sequences given either in parameters or in stdin