misterb101 has asked for the wisdom of the Perl Monks concerning the following question:
The subroutine attribute is not a problem, but I can't seem to figure out how I can list how many arguments the subroutine requires:sub foo($$) : Direct { ... }
can anyone implement the 'GiveMeTheNumberOfRequiredArgumentsOf' subroutine for me ;) ? THANKSmy $numArgs = GiveMeTheNumberOfRequiredArgumentsOf(\&foo);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subroutine introspection
by JavaFan (Canon) on Dec 22, 2010 at 16:32 UTC | |
by misterb101 (Sexton) on Dec 22, 2010 at 19:29 UTC | |
|
Re: subroutine introspection
by ikegami (Patriarch) on Dec 22, 2010 at 17:32 UTC |