in reply to AUTOLOAD not following @ISA as expected [solved]

I haven't got the time or patience to read and try to understand all your code, but I get the impression that you're expecting goto &sub to do inheritance, which it doesn't. Is that what you mean by 'bouncing back of AUTOLOAD'?

Dave.

Replies are listed 'Best First'.
Re^2: AUTOLOAD not following @ISA as expected
by chibiryuu (Beadle) on Aug 02, 2005 at 21:16 UTC
    Yes, that is what I mean.
      Yes, that is what I mean
      In that case I think you want to replace sub {goto \&{$#_ ? $set : $get}}; with
      sub { my $self = shift; @_ ? $self->$set(@_) : $self->$get(@_) };
      or
      sub { goto &{$_[0]->can($#_ ? $set : $get)} };

      Dave.

      AUTOLOAD doesn't play nicely with inheritance -- it takes control of everything. (including DESTROY, which can make for some interesting problems).

      You may want to take a look at NEXT