Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Possible breakage (Score:4, Informative)

    by 2shortplanks (968) on 2003.06.10 8:42 (#20969) Homepage Journal
    Quite a lot of code needs to know if what it's passed is a object (which it shouldn't go inside) or a hash (which it can.) To do this it uses blessed which you've just broken.

    Let's fix that

    sub BasicType::a_sub_not_likely_to_be_here { 0 }
    @HASH::ISA=qw(BasicType);
    @ARRAY::ISA=qw(BasicType);
    ...
    (untested code, of course)