Start the program under the debugger and issue the following command : c 10 ( this should run the debugger to the 10th line , the one with print "\nOk\n" ) Instead , i receive the following message "100 levels deep in subroutine calls!" and using r can't return from the function.sub fact { my $n=shift; if($n==0 || $n==1) { return 1; } return $n*fact($n-1); } print fact(107); print "\nOk\n";
In reply to Re^4: Debug recursion ?
by Alien
in thread Debug recursion ?
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |