Re: Suggestion for FAQ 7.17
[email protected] (brian d foy) Mon, 20 Nov 2006 12:08:24 -0600
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <201120061208245337%[email protected]> |
[[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <[email protected]>, Randall <[email protected]> wrote: > FAQ 7.17 How can I access a dynamic variable while a similarly named > lexical is in scope? > > There is a third way which isn't mentioned in the FAQ. It bypasses the > need for a package name, and simply looks in the current symbol table. > It's also slightly less confusing than redeclaring the 'our' variable. I sorta responded to this in comp.lang.perl.misc, but didn't give the explanation. For the answer, we should stick to the means and methods we recommend for normal users. Fooling with typeglobs when you don't need them is not one of those methods. :)