in reply to Inherit only few methods from a parent class
use parentModule qw(func1 func2 func3);
will import only the methods func1, func2 and func3 from the parent module.
Update: As JavaFan points out below, I jumped in a little quickly. Please disregard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inherit only few methods from a parent class
by JavaFan (Canon) on Jul 13, 2009 at 15:09 UTC |