Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub closure($n) {
- say "outer";
- return if $n == 0;
- my $x = -> $n {
- say "inner";
- return if $n == 0;
- &?ROUTINE(0);
- }
- $x(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement