There's more than one way to do things | |
PerlMonks |
No recursion depth limit?by Yary (Pilgrim) |
on Sep 02, 2015 at 01:28 UTC ( [id://1140739]=perlquestion: print w/replies, xml ) | Need Help?? |
Yary has asked for the wisdom of the Perl Monks concerning the following question:
I have this memory of Perl limiting how deep subroutine recursion could go, but the following test suggests not:
on perl 5.12 and 5.20, on windows and NetBSD, they both run (and without apparent limit, if you remove the "exit") I got bit when debugging a recursive sub, and my perl process hard-froze my Windows 7 machine. The mouse moved but nothing else worked, not ctrl-alt-del, not "Fn-Sleep". I waited about 10 minutes, thinking it would run out of memory and exit, but the machine just stayed frozen :-( Just curious if there was a recursion limit, and if so, when was it lifted? Next day addendum - Thanks for all the replies! I've encountered the runtime warning, and the regexp recursion limit, and the debugger warnings all in the past, and I must have confabulated them. You all got ++ votes from me for your reminders.
Back to
Seekers of Perl Wisdom
|
|