You could look at PadWalker to get access to lexical variables.
Clint
Update Thanks to ikegami for pointing out that you are not using symbolic references. I misread the code.
Presumably then, your my variables are being declared within other subs, so they are not in the same scope as your display_init sub, and so are not visible.
In reply to Re: issues with eval (get a variable's value)
by clinton
in thread issues with eval (get a variable's value)
by squale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |