Prior Nacre V has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to put together some information on typeglob slots.
Does anyone know if a full list of typeglob slot names (i.e. the THING part of *foo{THING}) exists anywhere?
I've identified these (from various sources):
| THING | Meaning |
|---|---|
| PACKAGE | Package name |
| NAME | Typeglob name |
| SCALAR | scalar ref |
| ARRAY | array ref |
| HASH | hash ref |
| CODE | code ref |
| GLOB | glob ref |
| IO | io ref - see below |
| FORMAT | format (but need 5.8) |
| FILEHANDLE | synonym for IO |
The *foo{IO} apparently holds sockets, file handles and directory handles but the last two are supposed to have their own namespaces. What whould *X{IO} return following open(X, ...) and opendir(X, ...)?
What about other reference types: REF? Regexp? LVALUE? Any I've missed?
Are there other types of THINGs?
PN5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Typeglob Slot Information
by Juerd (Abbot) on Mar 07, 2004 at 22:27 UTC | |
by Prior Nacre V (Hermit) on Mar 07, 2004 at 22:50 UTC | |
by Juerd (Abbot) on Mar 07, 2004 at 22:55 UTC | |
|
Re: Typeglob Slot Information
by ysth (Canon) on Mar 09, 2004 at 03:11 UTC | |
|
Re: Typeglob Slot Information
by ambrus (Abbot) on Mar 09, 2004 at 14:57 UTC | |
by Juerd (Abbot) on Mar 09, 2004 at 15:53 UTC |