This declares a 'my' var within if parens for convenience;
[-ControlStructures::ProhibitCascadingIfElse]
# This is a good general policy but the default max of 5 args is not always
-# possible in time-critical subs. Two subs in perltidy have 10 args.
-# When large numbers of args cannot be avoided, it works well to format them
-# with one arg per line, and no trailing comma.
+# possible in time-critical subs. One sub in perltidy has 11 args.
[Subroutines::ProhibitManyArgs]
-max_arguments = 10
+max_arguments = 11
skip_object = 1
[-ClassHierarchies::ProhibitExplicitISA]
my $len_test = length($test_line);
# check '$rtoken_map' and '$routput_token_list'
- Fault(<<EOM);
+ $self->Fault(<<EOM);
Reconstruted line difers from input; input_length=$len_input test_length=$len_test
input:'$input_line'
test :'$test_line'
) = @_;
+ if ( DEVEL_MODE && @_ != ( my $my_count = 12 ) ) {
+ my $count = @_;
+ $self->Fault("arg count $count expected to be $my_count\n");
+ }
+
my $quoted_string;
if ( $in_quote == 2 ) { # two quotes/quoted_string_1s to follow
my $ibeg = $i;