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 | 2e8ce2010f213d7c5110f7b052f1301440e9f663 (patch) | |
tree | b6bba578f0fe4919752dcf213ee3d20ea5e46679 /perl_checker.src/test | |
parent | 19223c94b1e66d368510b0a51846cd81ff274578 (diff) | |
download | perl_checker-2e8ce2010f213d7c5110f7b052f1301440e9f663.tar perl_checker-2e8ce2010f213d7c5110f7b052f1301440e9f663.tar.gz perl_checker-2e8ce2010f213d7c5110f7b052f1301440e9f663.tar.bz2 perl_checker-2e8ce2010f213d7c5110f7b052f1301440e9f663.tar.xz perl_checker-2e8ce2010f213d7c5110f7b052f1301440e9f663.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") |