243 |
former isn't working in some people's hands. There is no such thing |
former isn't working in some people's hands. There is no such thing |
244 |
as reliable exception handling in Perl. |
as reliable exception handling in Perl. |
245 |
|
|
246 |
|
1.27 Replaced tell STDOUT with bytes=tell STDOUT. |
247 |
|
|
248 |
=head1 AUTHORS |
=head1 AUTHORS |
249 |
|
|
250 |
Copyright 1995-2002, Lincoln D. Stein. All rights reserved. |
Copyright 1995-2002, Lincoln D. Stein. All rights reserved. |
281 |
|
|
282 |
$main::SIG{__WARN__}=\&CGI::Carp::warn; |
$main::SIG{__WARN__}=\&CGI::Carp::warn; |
283 |
|
|
284 |
$CGI::Carp::VERSION = '1.26'; |
$CGI::Carp::VERSION = '1.27'; |
285 |
$CGI::Carp::CUSTOM_MSG = undef; |
$CGI::Carp::CUSTOM_MSG = undef; |
286 |
|
|
287 |
|
|
492 |
$r->custom_response(500,$mess); |
$r->custom_response(500,$mess); |
493 |
} |
} |
494 |
} else { |
} else { |
495 |
if (eval{tell STDOUT}) { |
my $bytes_written = eval{tell STDOUT}; |
496 |
|
if (defined $bytes_written && $bytes_written > 0) { |
497 |
print STDOUT $mess; |
print STDOUT $mess; |
498 |
} |
} |
499 |
else { |
else { |