http://qs321.pair.com?node_id=173961


in reply to Ignore case of query string parameter

I haven't tested this code, but it should work ;)
my %params; for my $paramName ($query->param){ $params{lc($paramName)} = $query->param($paramName); }
All of your params should be in the %params hash, and you just use the lc version of your param name to access your value.

Replies are listed 'Best First'.
Re: Re: Ignore case of query string parameter
by Weasel (Sexton) on Jun 12, 2002 at 20:13 UTC
    same untested code but written into one line :)
    my %params = map {(lc($_)=>$query->param($_))} $query->param;
    (personally I tend to write similar code this way)

    Best wishes
    Weasel