in reply to hash name not sticking?

push @{$hash->{$1}->{$2}}, $try->param($string);
This line tells me you're using $hash as a reference to an anonymous hash.
Changing my %hash to my $hash should do the trick (unless i'm missing something).

update
d'oh. The real problem is in your html. Change this:
<P> then you have:<BR><P>$hash{12}{1}
to this:
<P> then you have:<BR><P>$hash->{12}->{1}
You just forgot to dereference. If you want to print anything meaningful (i.e. not ARRAY(0x812cd54)), you'll have to dereference it some more.

-- ar0n (just another perl joe)

Replies are listed 'Best First'.
RE: Re: hash name not sticking?
by jptxs (Curate) on Sep 05, 2000 at 00:50 UTC
    that seems to have no effect. I had already tried it (see the comment in the code) but i tried it again, both with and without '= {}' to see what would happen.

    the only interesting effect is that when I use 'my %hash' i get 'Global symbol "$hash" requires explicit package name...' and when i use 'my $hash' i get 'Global symbol "%hash" requires explicit package name...'. just weird.