in reply to Re^3: typeglob/symbolic reference question
in thread typeglob/symbolic reference question

And also
*{$x}{CODE}->() hi again
Interesting that assigning to *{$x}{CODE} is not allowed.
*{$x}{CODE} = sub { print "hi" }; Can't modify glob elem in scalar assignment...

Replies are listed 'Best First'.
Re^5: typeglob/symbolic reference question
by BrowserUk (Pope) on Nov 04, 2010 at 17:46 UTC
    Interesting that assigning to *{$x}{CODE} is not allowed.

    If I recall correctly--which i quite possibly don't--there is a proper syntax for doing that.

    But, like many people I suspect, I went through the process of playing with globs many moons ago, trying all the different forms and syntaxes, and then promptly forgot most of them because the are so few occasions when they are useful.

    It's one of those dark corners of Perl that's good to know it exists for the rare occasions that a use for it pops up. But when (if) it does, I have to go off and look up the syntax.

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.