baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:
problem is how to achieve selective warnings in the script.
example:
the problem is that $r is dynamically initialized, sometimes it is there and sometimes it isn't. so during the times it isn't i get the warnings that there is nothing there (as it should be). so i wan't to turn warnings off for this special case.use warnings; use strict; if (!$r){ do something }
thanx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: selective warnings
by bellaire (Hermit) on Mar 02, 2009 at 13:06 UTC | |
|
Re: selective warnings
by moritz (Cardinal) on Mar 02, 2009 at 13:19 UTC | |
|
Re: selective warnings
by Bloodnok (Vicar) on Mar 02, 2009 at 13:08 UTC | |
|
Re: selective warnings
by davido (Cardinal) on Mar 02, 2009 at 17:55 UTC |