There's more than one way to do things | |
PerlMonks |
Re^2: Too much Hash??by HamNRye (Monk) |
on Jun 02, 2004 at 21:51 UTC ( [id://359771]=note: print w/replies, xml ) | Need Help?? |
Nothing to be surprised at. Well, it obviously suprised me. Thanks for telling me that this is normal behaviour, and I've done something stupid. Is that a syntax screw-up on my part then?? In my perl books, the closest syntax I can find is $hash{$key}{'string'} = $value, and that's pretty much what I've always used. I thought maybe the backslashes in the path were what was causing it. I've tried puting quotes around the vars (both single and double), escaping said quotes, and a few different syntaxes using the -> and => operators, etc.... I'm talking desperation stuff. Could someone at least point me to something that will give my desperation some focus?? Here is an old write-up of mine that uses the same $MAIN::PageInfo{$section}{$pnum} = $_; style of putting things into a hash.... Is this much like the last write-up where something is falling out of scope? Update From perldsc -
That looks like roughly what I have, without the variables localized. I see I initialize $SubOption at the split, but even with that moved to the top of the sub it still fails.
In Section
Seekers of Perl Wisdom
|
|