What does $fh = *NAME accomplish
It puts the symbol table entry for NAME, a type glob (aka glob aka GV), in $fh.
and how can I use $fh?
@{ *$var{ARRAY} }, or even @{ *$var } or @{ $var }.
$ perl -E'@x=qw( a b c ); $var = *x; say for @{ *$var{ARRAY} }' a b c
All three also work if $var = \*x;.
In reply to Re: typeglob: $var = *x ???
by ikegami
in thread typeglob: $var = *x ???
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |