summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-04-28 11:27:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-04-28 11:27:38 +0000
commit387acb9e5a76b81185a4b562fa207f810653f3cb (patch)
tree0726129be65a0c75f547f29f4057e6c02bd52557 /perl_checker.src
parent11a4d7c3b70b617bdce862eb466306d9673e66e7 (diff)
downloadperl-MDK-Common-387acb9e5a76b81185a4b562fa207f810653f3cb.tar
perl-MDK-Common-387acb9e5a76b81185a4b562fa207f810653f3cb.tar.gz
perl-MDK-Common-387acb9e5a76b81185a4b562fa207f810653f3cb.tar.bz2
perl-MDK-Common-387acb9e5a76b81185a4b562fa207f810653f3cb.tar.xz
perl-MDK-Common-387acb9e5a76b81185a4b562fa207f810653f3cb.zip
add a test for open F, ...
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/test/syntax_restrictions.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl_checker.src/test/syntax_restrictions.t b/perl_checker.src/test/syntax_restrictions.t
index 6c336be..0108492 100644
--- a/perl_checker.src/test/syntax_restrictions.t
+++ b/perl_checker.src/test/syntax_restrictions.t
@@ -36,6 +36,8 @@ wantarray please use wantarray() instead of wanta
eval please use "eval $_" instead of "eval"
+local *F; open F, "foo"; use a scalar instead of a bareword (eg: occurrences of F with $F)
+
$xxx !~ s/xxx/yyy/ use =~ instead of !~ and negate the return value
pkg::nop $xxx; use parentheses around argument (otherwise it might cause syntax errors if the package is "require"d and not "use"d