in reply to hash name not sticking?

Do you want a variable $hash or a hash %hash? You need to make your declaration match what you are using it as. In your push you are using $hash as a reference to a hash, in your print you are looking up a value in %hash. This will not work well since they are different things, and that is why neither of your attempts at declaring it managed to do away with the problem.

Replies are listed 'Best First'.
RE: RE (tilly) 1: hash name not sticking?
by jptxs (Curate) on Sep 05, 2000 at 00:53 UTC
    i want hash %hash. so that i can call the values as in the HTML.
    my $hash = {}; ... push @{$hash{$1}{$2}}, $try->param($string); ... <P> then you have:<BR><P>$hash{12}{1}
    same error