in reply to Dereferencing a reference to a typeglob?
Typeglobs are actually difficult to handle because they introduce more magic than normal references.
Most Perl users probably never need them , since with lexical variables - i.e. declared with my - they are useless.
Typeglobs are helpful to manipulate the symbol table, but this is already "meta" stuff.
I think you just need to read perlref for how to handle references of lexicals.
Please don't apply Perl4 documentation to Perl5, Perl4 didn't have lexicals, that's why typeglobs were used there for referencing / dereferencing of globals and "aliasing".
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dereferencing a reference to a typeglob?
by BrowserUk (Patriarch) on Oct 29, 2016 at 09:47 UTC | |
by LanX (Saint) on Oct 29, 2016 at 10:00 UTC | |
by BrowserUk (Patriarch) on Oct 29, 2016 at 14:03 UTC |