Build all packages removed dependencies of libtest-exception-perl libtest-warn-perl...
[dh-make-perl] / dev / i386 / libperl-critic-perl / libperl-critic-perl-1.088 / t / InputOutput / ProhibitBacktickOperators.run
diff --git a/dev/i386/libperl-critic-perl/libperl-critic-perl-1.088/t/InputOutput/ProhibitBacktickOperators.run b/dev/i386/libperl-critic-perl/libperl-critic-perl-1.088/t/InputOutput/ProhibitBacktickOperators.run
new file mode 100644 (file)
index 0000000..5fd46e0
--- /dev/null
@@ -0,0 +1,91 @@
+## name Basic failures
+## failures 18
+## cut
+
+$string = `date`;
+@array = `date`;
+@array = ( `date` );
+@array = ( $foo, `date`, 'bar' );
+$array_ref = [ $foo, `date`, 'bar' ];
+
+print `date`;
+print ( `date` );
+
+if ( `date` ) {}
+
+for ( `date` ) {}
+
+$string = qx/date/;
+@array = qx/date/;
+@array = ( qx/date/ );
+@array = ( $foo, qx/date/, 'bar' );
+$array_ref = [ $foo, qx/date/, 'bar' ];
+
+print qx/date/;
+print ( qx/date/ );
+
+if ( qx/date/ ) {}
+
+for ( qx/date/ ) {}
+
+#-----------------------------------------------------------------------------
+
+## name Passing with only_in_void_context
+## failures 0
+## parms { only_in_void_context => 1 }
+## cut
+
+$string = `date`;
+@array = `date`;
+@array = ( `date` );
+@array = ( $foo, `date`, 'bar' );
+$array_ref = [ $foo, `date`, 'bar' ];
+
+print `date`;
+print ( `date` );
+
+if ( `date` ) {}
+
+for ( `date` ) {}
+
+$string = qx/date/;
+@array = qx/date/;
+@array = ( qx/date/ );
+@array = ( $foo, qx/date/, 'bar' );
+$array_ref = [ $foo, qx/date/, 'bar' ];
+
+print qx/date/;
+print ( qx/date/ );
+
+if ( qx/date/ ) {}
+
+for ( qx/date/ ) {}
+
+#-----------------------------------------------------------------------------
+
+## name Failure with only_in_void_context
+## failures 4
+## parms { only_in_void_context => 1 }
+## cut
+
+`date`;
+qx/date/;
+
+if ( $blah ) { `date` }
+if ( $blah ) { qx/date/ }
+
+##############################################################################
+#      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/InputOutput/ProhibitBacktickOperators.run $
+#     $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
+#   $Author: clonezone $
+# $Revision: 2187 $
+##############################################################################
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 78
+#   indent-tabs-mode: nil
+#   c-indentation-style: bsd
+# End:
+# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :