Created
July 3, 2012 15:32
-
-
Save hoelzro/3040496 to your computer and use it in GitHub Desktop.
Infinite Recursion in Perl6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
my $counter = 0; | |
sub foo { | |
say $counter if $counter > 99_000; | |
$counter++; | |
foo; | |
} | |
foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment