Skip to content

Instantly share code, notes, and snippets.

@softmoth
Created September 9, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softmoth/3687899 to your computer and use it in GitHub Desktop.
Save softmoth/3687899 to your computer and use it in GitHub Desktop.
.perl loop on recursive data structure
# vim:set ft=perl6:
my %foo;
%foo<a> = 'a' => [];
%foo<b> = 'b' => [];
push %foo<a>.value, %foo<b>;
# Rakudo and niecza will never return from .perl method
push %foo<b>.value, %foo<a>;
note "Before .perl";
my $txt = %foo<a>.perl;
note "I am alive: $txt";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment