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.
  • I tripped on this a couple years ago. It wasn't a show-stopper and I wasn't sure it was actually a bug at the time.
  • Actually, the line

    print scalar keys %Foo::;

    will autovivify the symbol table, so if you use that anywhere in your test program, it will print "*main::Foo::" all three times.

  • This is another reason why is deprecated. It has to solve the same problem and there's no way to know if a class is partial.

    You'll also see this if the class exists but it failed during loading. You can still find the parts taht succeeded in the symbol table but you'll just be missing "the rest" and you don't have any way to know how much else "the rest" is.

    • Yeah, partial compilation has bitten me hard at times. Very unfortunate. I wonder if it's useful to have a module which attempts to clean up after bad loads?

      • Snapshots the symbol table and reverts it on failure? I wish git worked /inside/ perl.