in reply to Undefined subroutine &main::func1 [SOLVED]
G'day thanos1983,
"Can someone help understand what I am doing wrong?"
Well, for that to happen, you need to show us what you are doing! And, frankly, after all the time you've been here, you really should know this. Please read "How do I post a question effectively?" (again, if necessary).
My best guess, is that you've written code like:
use Net::SNTP::Client; ... func1();
When you should've written code like:
use Net::SNTP::Client; ... Net::SNTP::Client::func1();
or
use Net::SNTP::Client qw{func1}; ... func1();
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undefined subroutine &main::func1
by thanos1983 (Parson) on Jun 28, 2015 at 02:20 UTC | |
by kcott (Archbishop) on Jun 28, 2015 at 02:45 UTC | |
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 |