in reply to Badly need to call a function...:-)
No Argument Limitationssub my_function { # ... }
Arguments limited to the empty list: ()sub my_function () { # ... }
Since your code above appends the empty list to the function defintions the arguments are limited to the empty list. Given that your invocation passes arguments, perl returns an error. In addition to use strict; you may also want to try use diagnostics; for an explanation of perl's error messages:
(F) The function requires fewer arguments than you specified.
|
|---|