Hi, It's late and I shouldn't even be in the office but thanx for the replies. The point that you can't have hash keys of the same name makes a huge amount of sense and is something is mentioned about it in the cookbook.
I'll try the slice on Monday, as two replies are stating that as the solution. I am confident it will get me through. Thanx. Dp. On 30 Jul 2004 at 13:51, Jeremy Brooks wrote: > 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 > > ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- 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