stevieb began his expository goodness with:
You're close, but you have to dereference the symbol table entry appropriately, not use it directly as a local variable. The array/hash doesn't get magically created
I see! I wonder if something has changed in how Perl parses such things, since, as I mentioned, the example was virtually verbatim from The Divine Book of All Things Perlish (the "Camel"). Whatever the case, your assistance caused me to become enlightened and was very appreciated. I've incorporated this dereferencing technique in code in a module I'm working on.
- Soren
Jul 28, 2025 at 00:42 UTC
In reply to Re^2: Interrogating stashes - Camel example doesn't work?
by Intrepid
in thread Interrogating stashes - Camel example doesn't work?
by Intrepid
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |