Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • This is a bug that it works. It's only semi-unlikely to get fixed. I've things I'd like to do that need this bug to get fixed so I may spend some time to ensure that this bug "works" appropriately.

    There's two related bugs here. If you localize or delete the stash a function exists in, the GV pointed to by the pp_gv opcode has a pointer to the original stash. This makes it oblivious to wholesale replacement of the stash.

    It appears the other bug is that that the pp_gv opcode has a pointer to the GV and retains it even if the stash no longer contains that GV.

    Both of these bugs are preventing two kinds of dynamisms from working. I've an interest in fixing one and it might make sense to fix both at the same time.

    sub foo { 42 }
    delete $::main{foo};
    print foo(); # This had *better* die