Created
August 29, 2012 09:00
-
-
Save softmoth/3508824 to your computer and use it in GitHub Desktop.
Backtrace elems
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
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