Exporter/@ISA confusionby qhen (Acolyte)
|on Jun 09, 2014 at 06:20 UTC||Need Help??|
qhen has asked for the wisdom of the Perl Monks concerning the following question:
Hopefully someone can alleviate my confusion w.r.t. when to use Exporter/@ISA when subclassing.My code - which works as expected:
However, if I uncomment #our @ISA = qw(Exporter); Then I get the error
I normally create all my classes using our @ISA = qw(Exporter);, so I'm not clear on why this is failing now. Is it because I'm sub-classing Net::Server::PreFork?
Second - and I suppose related - question is that if I comment out as follows:
everything still works normally, so why on earth should I bother with Exporter anyway?Thanks