in reply to Re^2: keys %::
in thread keys %::

I seem to recall that every glob has an SV in the scalar slot as an optimization, but I can't confirm it by reading the source code. (I'm not sure I've even found the right spot in the code.)

Replies are listed 'Best First'.
Re^4: keys %::
by blazar (Canon) on Apr 30, 2005 at 11:06 UTC
    Indeed it is so, for when I first tried I noticed that the 'SCALAR' key always seemed to be there, which surprised me and back then I checked into the docs to discover that it was supposed to be so. I think it hasn't changed since...