On Wed, 28 Aug 2002, Sean O'Rourke wrote: : Being able to specify fixed arguments after a splat looks illegal, or at : least immoral. It opens the door to backtracking in argument parsing, : e.g.: : : sub foo (*@args, &func, *@more_args, $arg, &func) { ... } : : > Saying specifically a list of arrays. Also, would that list gobble up : > everything, or would it actually allow that coderef on the end? : : I would expect it to be a syntax error, since the slurp parameter has to : be the last.
This sort of thing must be done with real parsing rules. These can return a list of args as a single @args argument without having to play with splat. Larry