You probably simply miss the "1;" at the end of the .pm file.
Perl modules always have to return a "true" value. This is accomplished by simply putting "1;" at the end of the file.
More information can be found in the example code of Perl Modules in the perlmod documentation.