in reply to Unable to use exported routine

The full package name has to be defined in mod.pm:
package dir::mod;

Please use standard conventions to name packages. Browse CPAN for some examples.