X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsigtrap.pm;h=8577c728c78170293769566ef4d72487732ef7e7;hb=dfa4e5d386dd8c5329351699b02085856cdd140e;hp=c081123b6b4ca2288221241797395ae5543da173;hpb=36477c247f3c188fb8cc7e276c87b739d3e6ab7c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/sigtrap.pm b/lib/sigtrap.pm index c081123..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.02; +$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; @@ -180,7 +179,8 @@ The handler used for subsequently installed signals calls C I will be used as the handler for subsequently installed signals. I can be any value which is valid as an -assignment to an element of C<%SIG>. +assignment to an element of C<%SIG>. See L for examples of +handler functions. =back