in reply to Re^3: typeglob: $var = *x ???
in thread typeglob: $var = *x ???
I showed that it doesn't need dereferencing.perlreftut says that the syntax @$gv is a shortcut for @{$gv}, and that looks like the very definition of dereferencing to me (see perlreftut, Use Rule 1). As far as I can tell, the only time you don't have to dereference the variable is when you use it as a filehandle--in that case it appears that perl uses the context to determine that it should extract the filehandle part of the typeglob.$gv = *x; @$gv => @x
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: typeglob: $var = *x ???
by ikegami (Patriarch) on Jun 16, 2011 at 15:30 UTC |