From: Alexey Tourbin Date: Sat, 24 Feb 2007 21:24:32 +0000 (+0300) Subject: sigtrap.pm (handler_traceback): do not clobber $_ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=825b6c4f9313badca63d266064f44426a9a64a50;p=p5sagit%2Fp5-mst-13.2.git sigtrap.pm (handler_traceback): do not clobber $_ Message-ID: <20070224182432.GA14446@localhost.localdomain> p4raw-id: //depot/perl@30399 --- diff --git a/lib/sigtrap.pm b/lib/sigtrap.pm index c65b756..8577c72 100644 --- a/lib/sigtrap.pm +++ b/lib/sigtrap.pm @@ -8,7 +8,7 @@ sigtrap - Perl pragma to enable simple signal handling use Carp; -$VERSION = 1.03; +$VERSION = 1.04; $Verbose ||= 0; sub import { @@ -95,8 +95,7 @@ sub handler_traceback { # Now go for broke. for ($i = 1; ($p,$f,$l,$s,$h,$w,$e,$r) = caller($i); $i++) { @a = (); - for $arg (@args) { - $_ = "$arg"; + for (@args) { s/([\'\\])/\\$1/g; s/([^\0]*)/'$1'/ unless /^(?: -?[\d.]+ | \*[\w:]* )$/x;