# New Ticket Created by Matt Diephouse # Please include the string: [perl #38090] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38090 >
Most builtins take a varying number of arguments, so it's hard to use this there, but for procs without {args} arguments, this error handling can be help eliminate a chunk of the wrapper script. Throw an exception *inside* the sub, catch it, and then throw the appropriate tcl exception about the wrong # of args. See Leo's mail to the p6i list titled: pdd03 and Overflow/Underflow - r10269 -- matt diephouse http://matt.diephouse.com