in reply to Finding out if a scalar exists in a typeglob
Unfortunately, if they've been declared but never initialized, I can't seem to get at them in five minutes of trying. The trick you came up with for coderefs doesn't do the job here.while (my ($sym_name, $sym_glob) = each %{"${pkg}::"}) { push(@things, $sym_name) if (defined ${ *$sym_glob{SCALAR} }) ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Finding out if a scalar exists in a typeglob
by davorg (Chancellor) on Oct 23, 2000 at 20:29 UTC |