8 @array = ( $foo, `date`, 'bar' );
9 $array_ref = [ $foo, `date`, 'bar' ];
20 @array = ( qx/date/ );
21 @array = ( $foo, qx/date/, 'bar' );
22 $array_ref = [ $foo, qx/date/, 'bar' ];
31 #-----------------------------------------------------------------------------
33 ## name Passing with only_in_void_context
35 ## parms { only_in_void_context => 1 }
41 @array = ( $foo, `date`, 'bar' );
42 $array_ref = [ $foo, `date`, 'bar' ];
53 @array = ( qx/date/ );
54 @array = ( $foo, qx/date/, 'bar' );
55 $array_ref = [ $foo, qx/date/, 'bar' ];
64 #-----------------------------------------------------------------------------
66 ## name Failure with only_in_void_context
68 ## parms { only_in_void_context => 1 }
74 if ( $blah ) { `date` }
75 if ( $blah ) { qx/date/ }
77 ##############################################################################
78 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/InputOutput/ProhibitBacktickOperators.run $
79 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
80 # $Author: clonezone $
82 ##############################################################################
86 # cperl-indent-level: 4
88 # indent-tabs-mode: nil
89 # c-indentation-style: bsd
91 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :