perlfaq9 has this question: "How do I decode or create those %-encodings
on the web?", and the answer begins:
Show quoted text> If you are writing a CGI script, you should be using the CGI.pm module
> that comes with perl, or some other equivalent module.
And yes, CGI imports escape and unescape from CGI::Utils but perldoc
CGI::Utils says:
Show quoted text> DESCRIPTION: no public subroutines
So I guess using CGI::escape and CGI::unescape amounts to using
undocumented features of CGI.
In light of that, I suggest the answer to the FAQ to be misleading. At
least I have no idea how to "decode or create those %-encodings on the
web" from reading perldoc CGI.
So therefore I suggest documenting escape and unescape in perldoc CGI.
I've created a simple patch for that (attached and at
http://pastebin.com/bPRq0Nsj). I hope this can be included in future CGI
releases.
In any event, I find the FAQ answer is not currently useful as far as
CGI goes.
This post was made after consulting perl.perlfaq.workers. See e.g.
http://groups.google.com/group/perl.perlfaq.workers/browse_thread/thread/8f6d04a0ae6f5f4f/
(Also, perldoc CGI has:
Show quoted text> Address bug reports and comments to: lstein@cshl.org.
If that is no longer appropriate, perhaps CGI.pm should change on that
account too. Feel free to let me know if you want me to open a separate
ticket for that.)