in reply to Encapsulation and Subroutine redefined warnings
BTW, Exporter is not used for object-oriented modules. It is used to exports functions into a namespace. Instead of calling:
Modules implementing objects usually only have class methods and instance methods.ColoTotals::init(); <code> You can do: <code> use ColoTotals; init();
my $totals = ColoTotals->new(); $totals->init(); $totals->process(); $totals->finish();
|
|---|