I'm a modperl newbie but a pretty good Perl programmer.  My first
thought is that you can't have multiple hash keys with the same name.
That's why you can only see one key called 'on'.  Maybe the 'on' value
that you are seeing is an array or array reference?
I hope I'm not way off base here but this would be the first thing I'd
verify.  

HTH,
  Jeremy

On Fri, 2004-07-30 at 13:01, Thomas Schindl wrote:
> [...]
> 
> As already stated by Joe you have two possibilities:
> 
> 1. Use Hashslice-Sytanx (very short hand)
> my %hash = ();
> 
> foreach( $r->param() ) {
>    @hash{$r->param($_)} = ( 1 );
> }
> 
> 2. For a more verbose version you should use a inner foreach:
> 
> my %hash = ();
> 
> foreach( $r->param() ) {
>    foreach( $r->param($_) ) {
>        $hash{$_} = 1;
>    }
> } 
> 
> Why are you using a hashref? do you really need it?
> 
> Tom
> 
> -- 
> NEU: WLAN-Router fr 0,- EUR* - auch fr DSL-Wechsler!
> GMX DSL = supergnstig & kabellos http://www.gmx.net/de/go/dsl
> 


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to