in reply to Cannot call my installed module
I am trying to get a perl script to run my own installed module. I am getting the below message.
Undefined subroutine &testdir::testsub called at call_module line 11.
Obviously, perl is telling you that the subroutine &testdir::testsub, used in line number 11 in your script is not available! Why? it was never "loaded".
Note is either you un-comment your this line:
# require '/home/sherman/build_dir/testdir/moduletest.pm';
or add
use testdir::moduletest;
indicating where the subroutine you used in line number 11 is located.
Please also check perlmod
Hope this helps.
## Update:
|
|---|