CGI-Deurl

 view release on metacpan or  search on metacpan

Deurl.pm  view on Meta::CPAN

151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
The %hash then contains all CGI parameters specified there.
 
 Ex.
   deurl('a=5&b=13',\%query);
  leads to :
   $query{a} = 5;
   $query{b} = 13;
 
=item deurlstr
 
=item $decodedstring = deurlstr $string
 
Decodes the string as if it was a CGI parameter value.
That is ist translates all '+' to ' ' and all
%xx to the corresponding character. It doesn't care about
'&' nor '='.
 
 Ex.
   $result = deurlstr 'How+are+you%3F';
  leads to:
   $result = 'How are you?'



( run in 0.235 second using v1.01-cache-2.11-cpan-0d8aa00de5b )