diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-10 09:07:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-10 09:07:48 +0000 |
commit | 8b557505590d0733b29c54b8f9c33d15c1619e6e (patch) | |
tree | 7781a25b06076b396a8db83d5380f40c5bc01e7a /perl_checker.src/test | |
parent | 262c6d17a23ee7047c25e60310b0ebbcc39cb40a (diff) | |
download | perl-MDK-Common-8b557505590d0733b29c54b8f9c33d15c1619e6e.tar perl-MDK-Common-8b557505590d0733b29c54b8f9c33d15c1619e6e.tar.gz perl-MDK-Common-8b557505590d0733b29c54b8f9c33d15c1619e6e.tar.bz2 perl-MDK-Common-8b557505590d0733b29c54b8f9c33d15c1619e6e.tar.xz perl-MDK-Common-8b557505590d0733b29c54b8f9c33d15c1619e6e.zip |
allow disabling warnings on command-line (and have various warnings level)
Diffstat (limited to 'perl_checker.src/test')
-rw-r--r-- | perl_checker.src/test/syntax_restrictions.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/test/syntax_restrictions.t b/perl_checker.src/test/syntax_restrictions.t index 6641b7b..eb186d8 100644 --- a/perl_checker.src/test/syntax_restrictions.t +++ b/perl_checker.src/test/syntax_restrictions.t @@ -34,7 +34,7 @@ foreach ($xxx = 0; $xxx < 9; $xxx++) {} write "for" instead of "foreach" foreach $xxx (@l) {} don't use for without "my"ing the iteration variable -foreach ($xxx) {} you are using the special fpons trick to locally set $_ with a value, for this please use "for" instead of "foreach" +foreach ($xxx) {} you are using the special trick to locally set $_ with a value, for this please use "for" instead of "foreach" unless ($xxx) {} else {} don't use "else" with "unless" (replace "unless" with "if") |