in reply to Re^7: perl modules
in thread perl modules

That wouldn't cause the require to fail, only the import
$ echo package somethingelse; 1; > foo.pm $ perl -e " use foo; die 2 " 2 at -e line 1.
see Simple Module Tutorial