in reply to Typeglob Slot Information

Does anyone know if a full list of typeglob slot names (i.e. the THING part of *foo{THING}) exists anywhere?

I think you just wrote one. :)

What about other reference types: REF? Regexp? LVALUE? Any I've missed?

Reference types don't necessarily correspond to equally named glob slots. For example, REF and LVALUE are both of type SCALAR and when put in a glob would live in SCALAR. (I still think that UNIVERSAL::isa(\[], 'SCALAR') should return true.)

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Typeglob Slot Information
by Prior Nacre V (Hermit) on Mar 07, 2004 at 22:50 UTC

    I hadn't thought of using isa(). Was thinking more of output from ref(). I'll investigate that.

    PN5

      I hadn't thought of using isa(). Was thinking more of output from ref(). I'll investigate that.

      Both have nothing to do with typeglob slots, except for sometimes identical names. AFAICT, your list is complete as it is. See PP(pp_gelem) in pp.c. For your convienience pasted here:

      Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }