diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 11:27:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 11:27:38 +0000 |
commit | 387acb9e5a76b81185a4b562fa207f810653f3cb (patch) | |
tree | 0726129be65a0c75f547f29f4057e6c02bd52557 /perl_checker.src | |
parent | 11a4d7c3b70b617bdce862eb466306d9673e66e7 (diff) | |
download | perl-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.t | 2 |
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 |