Clear questions and runnable code
get the best and fastest answer
Disable Perl warningby nitai0 (Initiate)
|on Nov 26, 2012 at 05:54 UTC||Need Help??|
nitai0 has asked for the
wisdom of the Perl Monks concerning the following question:
I am new to Perl,(only 6 month experience).
I am working in web based application using CPAN.
they are using "use warnings" for enable warnings for in all pm modules.
There are 3 servers (development, testing and main) respectively where we can run the application.
Now their requirement is, THEY DON'T NEED PERL WARNING FOR MAIN SERVER (server 3).
means, for the firsts 2 server(development and testing)the Perl warning will display as before but when we run the application in 3rd server the perl warning should not display.
IS IT POSSIBLE to write any config file where I can change "use warnings" to "no warnings" depending on the server configuration in run time or something like that.
HOW TO DO THIS --ANY IDEA..thanks in advance...regards nitai