develooper Front page | perl.perl5.porters | Postings from December 2000

[PATCH] CGI::Carp ambiguity

From:
Jeff Pinyan
Date:
December 25, 2000 20:13
Subject:
[PATCH] CGI::Carp ambiguity
Message ID:
Pine.GSO.4.21.0012252308040.25445-100000@crusoe.crusoe.net
Patch after sig.  The docs say STDERR gets saved to SAVEERR, but this
makes it sound like SAVEERR and STDERR exist in the same namespace.  My
patch clarifies the existence of SAVEERR in the CGI::Carp namespace.

-- 
Jeff "japhy" Pinyan     japhy@pobox.com    http://www.pobox.com/~japhy/
CPAN - #1 Perl Resource  (my id:  PINYAN)       http://search.cpan.org/
PerlMonks - An Online Perl Community          http://www.perlmonks.com/
The Perl Archive - Articles, Forums, etc.   http://www.perlarchive.com/



--- lib/CGI/Carp.pm     Sun Oct 22 14:36:21 2000
+++ lib/CGI/Carp.pm.new Mon Dec 25 23:21:14 2000
@@ -71,9 +71,9 @@
 
 carpout() does not handle file locking on the log for you at this point.
 
-The real STDERR is not closed -- it is moved to SAVEERR.  Some
+The real STDERR is not closed -- it is moved to CGI::Carp::SAVEERR.  Some
 servers, when dealing with CGI scripts, close their connection to the
-browser when the script closes STDOUT and STDERR.  SAVEERR is used to
+browser when the script closes STDOUT and STDERR.  CGI::Carp::SAVEERR is
used to
 prevent this from happening prematurely.
 
 You can pass filehandles to carpout() in a variety of ways.  The
"correct"





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About