Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Perl doesn't give error when module is not found 2by Anonymous Monk |
on Mar 26, 2024 at 10:53 UTC ( [id://11158519]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In Perl I have a script 'a.pl' that calls a module 'MyModule.pm' and inside that module
there's a call with function 'call()' to another module 'MyModule2.pm' function '$authorize' as 'MyModule2::authorize()' but MyModule2 is not loaded with 'use MyModule2' inside MyModule.pm. But I get no error "module cannot be found" when running the script 'perl a.pl' which calls 'MyModule.pm' function 'call()' which calls 'MyModule2::authorize()' Only if I run 'perl MyModule.pm' I get error "MyModule2.pm not found".
Back to
Seekers of Perl Wisdom
|
|