in reply to Re: Gas gauge ??
in thread Gas gauge ??

Hi Roger,

I tried the example from Cpan, but got a "Can't locate CGI/ProgressBar.pm in @INC ..." message, so have asked the web hosts to install that module.

The current shebang line,etc is

#!/usr/bin/perl -wT use CGI qw/:standard/; use DBI; use Net::SMTP; #use CGI::Carp qw(fatalsToBrowser); #comment this out when in produ +ction BEGIN { use CGI::Carp qw(carpout); open(LOG, ">>/home/username/cgi-bin/process-log") or die("Unable to open process-log: $!\n"); carpout(LOG); } # resource limits $CGI::DISABLE_UPLOADS = 1; # no uploads $CGI::POST_MAX = 1024 * 10; # max 10K posts

Looking at the example on Cpan, would the insertion of the following

use lib '..'; use CGI::ProgressBar qw/:standard/; $| = 1; # Do not buffer output

have any other effect on the displaying of error messages (currently to browser), or other o/p to the browser (HTML code,etc) ?

Peter

Replies are listed 'Best First'.
Re: Re: Re: Gas gauge ??
by Roger (Parson) on Jan 08, 2004 at 03:02 UTC
    I don't think you need the use lib '..' bit. My gut feeling is that turning off buffering is not likely going to affect the printing of the error messages (well, maybe performance wise). But you will need to test it of course.

      I don't think you need the use lib '..' bit. My gut feeling is that turning off buffering is not likely going to affect the printing of the error messages (well, maybe performance wise). But you will need to test it of course.

      Okay, thanks, I'll test it with and with the use lib '..' bit.

      Peter