I have a sub routine set up that accepts 1 argument. When I try to call the subroutine again in my program, it says there is "Too many arguments" Even though there is the same ammount on the first call!
That's because it's Perl and not C.
By putting the brackets after the sub name in the declaration you are supplying a prototype that insists that there be NO parameters.
Loose the brackets and all will compile ok.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.