Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Dan Jacobson
February 2, 2005, 2:00 pm
rate this thread
Yeah, but uri_escape can't be what I want, as
$ echo -n wow pow|perl -nlwe 'use URI::Escape;print uri_escape($_);'
whereas I was looking for the tool that makes
I mean that's what those <FORM>s make, so why isn't there a function
to do it, or do I have to s/%20/+/g by hand? And perhaps that
character is not the only difference.
Maybe I want a tool that turns
but without running some http server.
$ echo -n wow pow|perl -nlwe 'use CGI qw/:standard/;print escapeHTML($_)'
no help. Is autoEscape() supposed to affect it? I can't find what
value for autoEscape() to use on perldoc CGI.
Dan Jacobson wrote:
> What can I use to turn text into x-www-form-urlencoded text?
> I.e., I want to do something like
> $ perl -nwe 'print x-www-form-urlencoded($_)'
> if you know what I mean.
Maybe you were looking for: