in reply to Re^2: Undefined subroutine &main::func1
in thread Undefined subroutine &main::func1 [SOLVED]
"Any way unfortunately I tried both of your solutions, very similar to my solution but again same error."
The code you posted in your update has:
use Net::SNTP::Client qw(&func1);
But that update only shows client.pl. We have no idea what's in Net/SNTP/Client.pm!
The suggestion I posted that's nearest to that is:
use Net::SNTP::Client qw{func1};
qw(&func1) (in client.pl) looks wrong to me, but I'm still just guessing!
"This is the first time that I am using the Exporter module ..."
Have you read, and fully understood, the documentation of Exporter.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Undefined subroutine &main::func1
by thanos1983 (Parson) on Jun 28, 2015 at 02:53 UTC | |
by kcott (Archbishop) on Jun 28, 2015 at 03:16 UTC | |
by thanos1983 (Parson) on Jun 28, 2015 at 14:01 UTC |