in reply to Re^2: Inherit only few methods from a parent class
in thread Inherit only few methods from a parent class

AUTOLOAD isn't going to work as AUTOLOAD will only be called if the method cannot be found.

You could created the methods in a loop from a BEGIN statement. What I probably would do is write a one liner which generates the subs, which I'd then concatenate to the file.

  • Comment on Re^3: Inherit only few methods from a parent class

Replies are listed 'Best First'.
Re^4: Inherit only few methods from a parent class
by Anonymous Monk on Jul 13, 2009 at 15:50 UTC
    Would you please give me an example..
    Sorry I am new to Perl!!

    Thanks,
    Shijumic