You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
`---
The text was updated successfully, but these errors were encountered:
Hi, I'm forwarding a request / wishlist bug received at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769970:
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
`---
The text was updated successfully, but these errors were encountered: