in reply to use of -w and warnings
See perldoc for both warnings and perllexwarn. Basically, the warnings pragma gives you lexically scoped warnings and much finer grained control over the warnings. For example, if you don't want "redefined" warnings, but you don't want to suppress all of the other warnings, rather than create a customer $SIG{__WARN__} handler, you can specify no warnings 'redefine'.
Cheers,
Ovid
New address of my CGI Course.
In Section
Seekers of Perl Wisdom