K
kj
What is the connection, if any, between typeglobs and references
to package variables? The following debugger interaction suggests
that they are very similar:
DB<1> $x = 'foobar'
DB<2> $y = *::x
DB<3> p $$y
foobar
DB<4> $z = \$::x
DB<5> p $$z
foobar
Is this similarity of behavior superficial?
Also, how can one retrieve the dirhandle, socket, and format items
from a typeglob. I'm aware of the *x{THING} syntax, but it's not
clear to me what value to use inside the curlies to access the
items listed.
Thanks!
kj
kj
to package variables? The following debugger interaction suggests
that they are very similar:
DB<1> $x = 'foobar'
DB<2> $y = *::x
DB<3> p $$y
foobar
DB<4> $z = \$::x
DB<5> p $$z
foobar
Is this similarity of behavior superficial?
Also, how can one retrieve the dirhandle, socket, and format items
from a typeglob. I'm aware of the *x{THING} syntax, but it's not
clear to me what value to use inside the curlies to access the
items listed.
Thanks!
kj
kj