The catch is that use MyDir::MyTest; will attempt to call MyDir::MyTest::import. That can be avoided by using either
use MyDir::MyTest ();
or
BEGIN { require MyDir::MyTest; }
or
BEGIN { require "MyDir/MyTest.pm"; }
In reply to Re^3: Multiple classes in modules
by ikegami
in thread Multiple classes in modules
by ArmchairDissident
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |