Bug#769970: libtest-strict-perl: Would like a way to check global warnings too

Guillem Jover guillem at debian.org
Mon Nov 17 23:28:15 UTC 2014


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



More information about the pkg-perl-maintainers mailing list