in reply to Re: hash name not sticking?
in thread hash name not sticking?

for the curious, i'm an idiot :)

in the past i have always created anon hashes setting arrays = arrays. well, this time it should have been scaler = scaler, but i just didn't see it. everything else fell out of doing that all wrong. code i ended up using:

my %hash; foreach my $string ( $try->param ) { if ( $string =~ m/(\d+)_(\d+)/ ) { $hash{$1}{$2} = $try->param($string); } }
and  <P> then you have:<BR><P>$hash{12}{1} which prints "then you have STRING".