bill5262 has asked for the wisdom of the Perl Monks concerning the following question:
I have a module imported in my main perl file as the following:
use rns_fsq_jw;
The above contains a bunch of sub functions, and it seems to be working well except for one sub fuction:
ConnectFSQ()
This what I have under the rns_fsq_jw library:
sub ConnectFSQ #ipaddress { (do something blah blah blah) }
However, when I call the ConnectFSQ() function from my main script, I get the error saying "Undefined subroutine &main::ConnectFSQ called at ..."
my $IP_FSQ = "xxx.xxx.xxx.xxx"; # ip address ... (blah blah blah) ConnectFSQ($IP_FSQ);
Am I doing something wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error saying “Undefined subroutine xxx called at…”
by VinsWorldcom (Prior) on Jul 26, 2016 at 02:21 UTC | |
|
Re: Error saying “Undefined subroutine xxx called at…”
by Anonymous Monk on Jul 26, 2016 at 02:19 UTC |