in reply to try to understand use lib in module
Notice the error message. Read the error message. Believe the error message.
Undefined subroutine &main:pen_log called at ./logtest2.module.pl line 23.In particular, I noticed you are using a function by the name of open_log(). In the error message, Perl is complaining about not finding a function by the name of pen_log(). Do you see the problem now?
Also, read what runrig wrote as well as the perldoc on Perl Modules.
|
|---|