What are callwith and samewith supposed to do?
问题 What are callwith and samewith supposed to do? I thought callwith was supposed to run a subroutine of the same name of the current subroutine, but using the arguments I pass to it. From the docs: callwith calls the next matching candidate with arguments provided by users and returns that candidate's return value. To me it sounds like inside the two-arity MAIN subroutine (i.e. MAIN($a,$b) ) that callwith($x) would call MAIN($x) . But it doesn't: multi MAIN ($a, $b) { my $result = callwith("$a