in reply to Re^5: Undefined subroutine &main::func1
in thread Undefined subroutine &main::func1 [SOLVED]

Hello kcott,

Well the Simple Module Tutorial works perfectly out of the box. Well I tried also to use the MyModule.pm with my script client.pl and it works perfectly.

The problem still lies when I am using my module Net::SNTP::Client.pm, For some unknown reason to me it still gives me the same error.

I have modified the code just as the example in MyModule.pm and I have tested the MyModule.pm and it works perfectly, but when I am applying the same exact code on Net::SNTP::Client.pm and I call it from my client.pl script I keep getting this error:

Undefined subroutine &main::func1 called at client.pl line 9.

So at this point I assume that might be because I installed the module and it can not detect the modifications that I am applying. This is only a guess I am not 100% sure if I am correct.

Seeking for Perl wisdom...on the process of learning...not there...yet!