Compilation error due to passing parameters in the wrong order
does X::Comp
Compile time error that is thrown when parameters in a signature in the wrong order (for example if an optional parameter comes before a mandatory parameter).
For example
sub f(?, )
dies with
===SORRY!===Cannot put required parameter after optional parameters
Returns the kind of misplaced parameter (for example "mandatory"
, "positional"
).
Returns the name of the (first) misplaced parameter
Returns a string describing other parameters after which the current parameter was illegally placed (for example "variadic"
, "positional"
or "optional"
).