summaryrefslogtreecommitdiff
path: root/lib/CGI
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CGI')
-rw-r--r--lib/CGI/Carp.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CGI/Carp.pm b/lib/CGI/Carp.pm
index 8425fa0686..90e9552c75 100644
--- a/lib/CGI/Carp.pm
+++ b/lib/CGI/Carp.pm
@@ -223,7 +223,7 @@ sub realdie { CORE::die(@_); }
sub id {
my $level = shift;
my($pack,$file,$line,$sub) = caller($level);
- my($id) = $file=~m|([^/]+)$|;
+ my($id) = $file=~m|([^/]+)\z|;
return ($file,$line,$id);
}
@@ -235,7 +235,7 @@ sub stamp {
$id = $file;
($pack,$file) = caller($frame++);
} until !$file;
- ($id) = $id=~m|([^/]+)$|;
+ ($id) = $id=~m|([^/]+)\z|;
return "[$time] $id: ";
}