Globs are symbol table entries, and only package variables are in the symbol table. Lexical (my) variables are not in the symbol table.
But there's no reason for you to be using globs anyway.
use strict; use warnings; my $cure = "cure"; my @cure = ('one', 'two', 'three'); cure(\$cure); sub cure { my $new = shift; print $$new; }
In reply to Re: typglob problem
by ikegami
in thread typglob problem
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |