It would be faster but not necessarily clearer.
Another approach without eval is using symbolic refs, you need to locally no strict 'refs'; for that.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
In reply to Re: Accessing module variables
by LanX
in thread Accessing module variables
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |