develooper Front page | perl.perlfaq.workers | Postings from June 2010

About "How do I decode or create those %-encodings on the web?"

Thread Next
From:
Peter Valdemar Mørch
Date:
June 23, 2010 05:58
Subject:
About "How do I decode or create those %-encodings on the web?"
Message ID:
f6bd282d-ddd2-4709-9c15-145a85ff5cdb@j4g2000yqh.googlegroups.com
perlfaq9 has the above question, and the answer begins:
> 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:
> 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.

I suggest one of:
* Document escape and unescape in perldoc CGI (please, please,
please!)
* Elaborate on how this escaping and unescaping can be achieved using
only the documented interface

In any event, I find the FAQ answer is not currently useful as far as
CGI goes.

Peter


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About