in reply to hash name not sticking?
Try this instead:
push @{$hash{$1}{$2}}, $try->param($string);
The arrows are only necessary to tell Perl that you want at data stored in the hash pointed to by the scalar $hash. Since you want at a scalar stored in %hash, you don't need the arrow. (Yes, using a HoHoL makes you use more punctuation, but I think you get the drift.)
Remember, the punctuation on the front of the variable name tells you want kind of value you want to use in that case -- it's not part of the variable's name. The arrow helps distinguish between a scalar portion of a hash and a scalar hash (de)reference. (Does this make it clear? I'm not sure I would understand it if I had to read what I'd just written. :| )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: hash name not sticking?
by jptxs (Curate) on Sep 05, 2000 at 05:05 UTC |