[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: Avoiding 'replacing previous run-mode' warning


On 2003-10-13, Wojciech Pietron <suppressed> wrote:
> Hi,
>
> I frequently use $self->prerun_mode() function to change default mode.
> I also have my script running with 'perl -w' option. This configuration 
> generates a lot of warnings in errorlog like:
>
> It looks like setting $^W is not the solution. Warnings about replacing still
> appears. How can I avoid that message? Has anybody ever faced such 
> a problem? I use perl 5.6.0 on Solaris.

A couple of options:

- Subclass CGI::Application, only replacing the subroutine that
  generates the warning. Make your new routine identical, except for
  generating the warning. :) 

- Patch CGI::Application to either remove the warning, covert into
  an message that appears in a debug mode, or create some kind 
  option so that people can have it turned on our note.

Personally, it seems to me that that if changing the run mode is
"feature" of the software that is expected to be used, then it shouldn't
generate a warning.

	Mark

-- 
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 
   Mark Stosberg            Principal Developer  
   suppressed     Summersault, LLC     
   765-939-9301 ext 202     database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.