On Sat Sep 24 01:02:24 2016, lloyd.fo...@gmail.com wrote:
> Reproduced. Looks like you shouldn't nest subs inside recursive functions
> atm :S.
I think it's only multis that suffer the problem.
/jnthn
Reproduced. Looks like you shouldn't nest subs inside recursive functions
atm :S.
More golfed with just $level being used to demonstrate:
sub process-list (@items, $level = 0) {
multi sub process-item ($item) {
('=' x $level) ~ $item;
}
multi sub process-item (@array) {
# New Ticket Created by Steve Schulze
# Please include the string: [perl #129344]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129344 >
I have a subroutine that may recurse, that contains a "my" counter
variable. Each