7 open($fh, ">$output") or die;
9 open my $fh, ">$output";
10 open(my $fh, ">$output");
11 open(my $fh, ">$output") or die;
15 open(FH, ">$output") or die;
17 #This are tricky because the Critic can't
18 #tell where the expression really ends
19 open FH, ">$output" or die;
20 open $fh, ">$output" or die;
21 open my $fh, ">$output" or die;
23 #-----------------------------------------------------------------------------
29 open $fh, '>', $output;
30 open($fh, '>', $output);
31 open($fh, '>', $output) or die;
33 open my $fh, '>', $output;
34 open(my $fh, '>', $output);
35 open(my $fh, '>', $output) or die;
37 open FH, '>', $output;
38 open(FH, '>', $output);
39 open(FH, '>', $output) or die;
41 #This are tricky because the Critic can't
42 #tell where the expression really ends
43 open $fh, '>', $output or die;
44 open my $fh, '>', $output or die;
45 open FH, '>', $output or die;
47 $foo{open}; # not a function call
49 # There is no three-arg equivalent for these
50 open( \*STDOUT, '>&STDERR' );
51 open( *STDOUT, '>&STDERR' );
52 open( STDOUT, '>&STDERR' );
55 open( \*STDOUT, '>>&STDERR' );
56 open( \*STDOUT, '<&STDERR' );
57 open( \*STDOUT, '+>&STDERR' );
58 open( \*STDOUT, '+>>&STDERR' );
59 open( \*STDOUT, '+<&STDERR' );
61 #-----------------------------------------------------------------------------
63 ## name pass with "use 5.005"
70 #-----------------------------------------------------------------------------
72 ## name fail with "use 5.006"
79 #-----------------------------------------------------------------------------
81 ##############################################################################
82 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/InputOutput/ProhibitTwoArgOpen.run $
83 # $Date: 2008-06-19 15:03:01 -0500 (Thu, 19 Jun 2008) $
84 # $Author: clonezone $
86 ##############################################################################
90 # cperl-indent-level: 4
92 # indent-tabs-mode: nil
93 # c-indentation-style: bsd
95 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :