in reply to Re^3: Exporter/@ISA confusion
in thread Exporter/@ISA confusion
Yes, if you want to export subroutines, you need to use Exporter. The most convenient way to do so is to use
use Exporter 'import';
... which does not need to modify @ISA at all, because all Exporter does is supply a subroutine named import.
But in most cases, object methods do not need to be exported at all. So neither new nor serve should be exported, because they will always be called on an object (or a class).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Exporter/@ISA confusion
by qhen (Acolyte) on Jun 11, 2014 at 11:41 UTC |