in reply to Re: Dynamically Changing Your Namespace
in thread Dynamically Changing Your Namespace

No, code isn't immutable. It's just difficult to change. All you'd have to do is find the pointers off all the COP nodes in the optree and change them to point somewhere else.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re^2: Dynamically Changing Your Namespace

Replies are listed 'Best First'.
Re^3: Dynamically Changing Your Namespace
by Anno (Deacon) on Mar 30, 2007 at 16:30 UTC
    Ah, so that's what the COP nodes are.

    While true, what you are saying rather stresses my meaning than contradict it. Changing pointers in the op tree isn't something you do in routine Perl programming.

    Anno

Re^3: Dynamically Changing Your Namespace
by chromatic (Archbishop) on Mar 30, 2007 at 17:03 UTC

    ... and change the bindings of all CVs compiled within that scope, if it's important.