Print stack trace in Perl.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 08 Aug 2012 07:32:33 +0300
changeset 1479 446235725c2b
parent 1354 4e2c6db95199
child 1480 c8f7a7a5c5f8
Print stack trace in Perl.
perl.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/perl.rst	Wed Aug 08 07:32:33 2012 +0300
@@ -0,0 +1,15 @@
+.. -*- coding: utf-8; -*-
+.. include:: HEADER.rst
+
+=======
+ Perl.
+=======
+.. contents::
+
+Print stack trace in Perl.
+==========================
+::
+
+  use Devel::StackTrace;
+  my $trace = Devel::StackTrace->new;
+  print $trace->as_string; # like carp