in reply to ... powerful?
in thread #!/usr/bin/perl -w

In short because it is all or nothing. It is a global flag and thus enables wanrings in modules you didnt write (which may have been written deliberately without warnings enabled for some reason.) Also because use warnings enables you to selectively enable or disable warnings for various types of problem as well as for the individual modules you are using (assuming that they have been written with warnings::register and its functions). Not only that you can selectively make certain types of warning fatal, enabling you have your code die if certain types occur.

In long heres a copy of the section "Whats wrong with -w and $^W" from perllexwarn



Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.