Skip to content

Instantly share code, notes, and snippets.

@softmoth
Created August 29, 2012 09:00
Show Gist options
  • Save softmoth/3508824 to your computer and use it in GitHub Desktop.
Save softmoth/3508824 to your computer and use it in GitHub Desktop.
Backtrace elems
my $x = 0;
sub foo {
my $bt = Backtrace.new;
note $x, +@$bt, $bt.end;
note $bt[*-1];
note $bt.full();
foo() if ++$x < 10;
}
foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment