From 41afcf96fd9504233aefe2380dbb1b1a88f19316 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 28 Apr 2004 11:27:38 +0000 Subject: add a test for open F, ... --- perl_checker.src/test/syntax_restrictions.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl_checker.src') 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 -- cgit v1.2.1