http://qs321.pair.com?node_id=152793


in reply to Re: Safe / @ISA Problem
in thread Safe / @ISA Problem

Ok, that works for me as well if I add a print just after the bless inside A::new - but that's no use - because now A::new doesn't work any more (it returns '1', not a blessed reference).

Have fun,

rdw

Replies are listed 'Best First'.
Re3: Safe / @ISA Problem
by dragonchild (Archbishop) on Mar 19, 2002 at 17:39 UTC
    Try having a return $self; as the last line in the function instead of depending on an explicit return. *wink*

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

      And then the problem re-appears - the print has nothing to do with it - it works if you put a print in instead of bless as the last thing in A::new, because then the code does something completely different.

      Anyway, never mind - I've worked out what's going on now - I'll reply higher up.

      Have fun,

      rdw