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 | 41afcf96fd9504233aefe2380dbb1b1a88f19316 (patch) | |
tree | 45061aea77e55c7cb9d17ae733623dd7204f8988 | |
parent | 767f95853462a202be29435b980552f6c6cdc513 (diff) | |
download | perl_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, ...
-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 |