Jun 092010
How to print the current stack backtrace in Perl?
Answer:
To print out the current stack backtrace in Perl, just insert the following code in your script and it will print out the stuff you need.
use Carp qw(cluck);
cluck "This is how we got here!";