in reply to RE: RE: Re: Module dependency
in thread Module dependency

Since 'use' is exactly equivalent to a 'require' and an 'import' at compile-time, not specifying a 'package' keyword in your .pm file means the file itself isn't a module/package at all, but is simply Perl code that will be read into the current name space as if you'd done a require "file.pl"; somewhere. You've just changed the extension to pm instead of pl.