Op 02-07-17 om 17:16 schreef Shawn H Corey:

On Sun, 2 Jul 2017 14:29:25 +0200
Eric de Hont <eric-pml...@hobiho.nl> wrote:

What it boils down to: use warnings as well as -w works, but -w is
considered old fashioned.
The problem with -w is that it can't be turned off. Sometimes a module
has to do something dangerous and having a warning appear is annoying
at best and can cause worry and stress in a programmer. `use
warnings;` can be turned off:

{
     no warnings;
     # do something dangerous
}
# end of scope restores warnings to the previous value `use` or `no`
Thanks! Didn't know that.

--
Eric de Hont

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to