Package: libtest-strict-perl
Version: 0.25-1
Severity: wishlist

Hi!

It would be nice if the syntax_ok() check could also enable (maybe
optionally) the perl global warnings, so that some of the problems
that only get detected with that, and not with «use warings» can be
spotted. Here's an example where this is relevant:

,--- compile-warn.pl ---
#!/usr/bin/perl
use strict;
use warnings;
use POSIX qw(getcwd);
use Cwd;
my $cwd = getcwd();
1;
`---

,---
$ perl -c compile-warn.pl
compile-warn.pl syntax OK
$ perl -cw compile-warn.pl
Subroutine main::getcwd redefined at /usr/share/perl/5.20/Exporter.pm line 66.
 at compile-warn.pl line 7.
compile-warn.pl syntax OK
`---

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to