Find limit of recursion is part of Short Circuit's Console Program Basics selection.
Task

Find the limit of recursion.




my $x = 0;
recurse;
 
sub recurse () {
   ++$x;
   say $x if $x %% 1_000_000;   
   recurse;
}