in reply to Too many arguments for main::
The get_Origserver sub has been defined with an empty prototype which means that it Perl will not allow you to pass any arguments to it.
sub get_Origserver () {.....
This is probably accidental. Removing the empty brackets from the subs definition as in
sub get_Origserver {....
Or making the prototype so that it accepts (at least) a scalar argument as in
sub get_Origserver ($) { ....
should fix the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Too many arguments for main::
by tadman (Prior) on Oct 30, 2002 at 06:55 UTC |