Shawn H Corey wrote:
Have you looked at `perldoc autodie` yet? I don't know if it'll die on
warnings though.
Yes, thank you. autodie doesn't seem to be a base package (on my
platform), so I continued searching and found:
use warnings FATAL => 'all';
which is a better solution for what I'm trying to do.
David
2011-01-17 15:23:31 dpchrist@p43400e ~
$ cat /etc/debian_version
5.0.7
2011-01-17 15:23:43 dpchrist@p43400e ~
$ perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
2011-01-17 15:23:45 dpchrist@p43400e ~
$ perl -e "use autodie"
Can't locate autodie.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/