Steny has asked for the wisdom of the Perl Monks concerning the following question:
is returning the following with Data::Dumper:my $userInfo; my $number = 1; my $temp = 1; push @$userInfo, { number => $number, name => param("n$i"), id => param("id$i"), rollSizzle => param("rs$i"), roll => $temp, sizzle => $temp} ; print Dumper($userInfo);
I may just be going nutz (or blanking out, due to staring at this screen for too long), but can anyone see why 'roll' and 'sizzle' aren't being assigned the value of '1'... instead of messing up the hash?$VAR1 = [ { '' => '', '1' => undef, 'rollSizzle' => 'roll', 'id' => 't +est', 'name' => 'test', 'number' => 1 } ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem assigning values to Hash
by blokhead (Monsignor) on May 31, 2004 at 18:41 UTC | |
by Steny (Sexton) on May 31, 2004 at 19:22 UTC | |
|
Re: Problem assigning values to Hash
by tinita (Parson) on May 31, 2004 at 18:40 UTC | |
|
Re: Problem assigning values to Hash
by kvale (Monsignor) on May 31, 2004 at 18:40 UTC | |
|
Re: Problem assigning values to Hash
by TomDLux (Vicar) on Jun 01, 2004 at 00:51 UTC | |
|
Re: Problem assigning values to Hash
by demerphq (Chancellor) on Jun 01, 2004 at 14:36 UTC |