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
commit41afcf96fd9504233aefe2380dbb1b1a88f19316 (patch)
tree45061aea77e55c7cb9d17ae733623dd7204f8988 /perl_checker.src
parent767f95853462a202be29435b980552f6c6cdc513 (diff)
downloadperl_checker-41afcf96fd9504233aefe2380dbb1b1a88f19316.tar
perl_checker-41afcf96fd9504233aefe2380dbb1b1a88f19316.tar.gz
perl_checker-41afcf96fd9504233aefe2380dbb1b1a88f19316.tar.bz2
perl_checker-41afcf96fd9504233aefe2380dbb1b1a88f19316.tar.xz
perl_checker-41afcf96fd9504233aefe2380dbb1b1a88f19316.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