From 9014bb8ee6d755e3124b996a99c8559d4b3f73cd Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Wed, 15 Jul 1998 05:15:16 +0000 Subject: [PATCH] fix warning from CGI::Carp p4raw-id: //depot/perl@1496 --- lib/CGI/Carp.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/CGI/Carp.pm b/lib/CGI/Carp.pm index 9b67d76..e20f754 100644 --- a/lib/CGI/Carp.pm +++ b/lib/CGI/Carp.pm @@ -178,7 +178,7 @@ use Carp; $main::SIG{__WARN__}=\&CGI::Carp::warn; $main::SIG{__DIE__}=\&CGI::Carp::die; -$CGI::Carp::VERSION = '1.10'; +$CGI::Carp::VERSION = '1.101'; $CGI::Carp::CUSTOM_MSG = undef; # fancy import routine detects and handles 'errorWrap' specially. @@ -194,8 +194,9 @@ sub import { } # These are the originals -sub realwarn { warn(@_); } -sub realdie { die(@_); } +# XXX Why not just use CORE::die etc., instead of these two? GSAR +sub realwarn { CORE::warn(@_); } +sub realdie { CORE::die(@_); } sub id { my $level = shift; @@ -268,7 +269,7 @@ EOF sub carpout { my($in) = @_; my($no) = fileno(to_filehandle($in)); - die "Invalid filehandle $in\n" unless defined $no; + realdie "Invalid filehandle $in\n" unless defined $no; open(SAVEERR, ">&STDERR"); open(STDERR, ">&$no") or -- 2.7.4