The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

## name Basic passing
## failures 0
## cut
($foo,
$bar,
$baz
);
@list = ($foo, $bar, $baz);
@list = some_function($foo, $bar, $baz);
@list = ($baz);
@list = ();
@list = (
);
@list = ($baz
);
@list = ($baz
);
# not a straight assignment
@list = ((1,2,3),(
1,
2,
3
));
#-----------------------------------------------------------------------------
## name Basic failure
## failures 3
## cut
@list = ($foo,
$bar,
$baz);
@list = ($foo,
$bar,
$baz
);
@list = ($foo,
$bar,
$baz
);
#-----------------------------------------------------------------------------
## name List assignment
## failures 0
## cut
@list = ($foo,
$bar,
$baz,);
@list = ($foo,
$bar,
$baz,
);
@list = ($foo,
$bar,
$baz,
);
#-----------------------------------------------------------------------------
## name Conditionals and mathematical precedence
## failures 0
## cut
$foo = ( 1 > 2 ?
$baz :
$nuts );
$bar = ( $condition1
&& ( $condition2
|| $condition3 )
);
# These were reported as false-positives.
$median = ( $times[ int $array_size / 2 ] +
$times[(int $array_size / 2) - 1 ]) / 2;
$median = ( $times[ int $array_size / 2 ] +
$times[ int $array_size / 2 - 1 ]) / 2;
#-----------------------------------------------------------------------------
## name code coverage
## failures 1
## cut
@list = ($foo,
$bar,
$baz --
);
#-----------------------------------------------------------------------------
##############################################################################
# $Date: 2009-02-15 10:57:40 -0600 (Sun, 15 Feb 2009) $
# $Author: clonezone $
# $Revision: 3115 $
##############################################################################
# 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 :