in reply to HTML Decoding
Why reinvent the wheel? The CGI module does exactly what you're trying to accomplish. Here is something from the CGI docs:
So, all you need is to create a CGI object, and get the params hash:FETCHING THE PARAMETER LIST AS A HASH: $params = $q->Vars; print $params->{'address'}; @foo = split("\0",$params->{'foo'}); %params = $q->Vars; use CGI ':cgi-lib'; $params = Vars;
Or, if you really want to pass your own QUERY_STRING, do it like this:use CGI qw/Vars/; my %params = Vars; # now you're good to go :-)
Hope this helps,,,use CGI; my $q = new CGI($ENV{QUERY_STRING}); my %params = $q->Vars();
Aziz,,,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML Decoding
by emcb (Beadle) on Mar 17, 2002 at 12:10 UTC | |
by cjf (Parson) on Mar 17, 2002 at 13:15 UTC | |
by mirod (Canon) on Mar 17, 2002 at 14:15 UTC | |
by Juerd (Abbot) on Mar 17, 2002 at 12:20 UTC | |
by tachyon (Chancellor) on Mar 17, 2002 at 17:28 UTC |