my ( $s1, $s2 ) = @_;
- # Given two strings, return
- # $diff_marker = a string with carat (^) symbols indicating differences
- # $pos1 = character position of first difference; pos1=-1 if no difference
+ # Given two strings, Return
+ # $diff_marker = a string with carat (^) symbols indicating differences
+ # $pos1 = character position of first difference; pos1=-1 if no difference
# Form exclusive or of the strings, which has null characters where strings
# have same common characters so non-null characters indicate character
last;
}
}
- return wantarray ? ( $diff_marker, $pos1 ) : $diff_marker;
+ return ( $diff_marker, $pos1 );
} ## end sub line_diff
sub compare_string_buffers {
"I dont know a sensible place to look for config files on an $os system.\n";
return;
}
- return wantarray ? ( $os, $system, $allusers ) : $os;
+ return ( $os, $system, $allusers );
} ## end sub Win_Config_Locs
sub dump_config_file {
sub terminal_type_i {
- # returns type of last token on this line (terminal token), as follows:
- # returns # for a full-line comment
- # returns ' ' for a blank line
- # otherwise returns final token type
+ # Given:
+ # ($ibeg, $iend) = index range of the current output buffer line
+ # Returns type of last token on this line (terminal token), as follows:
+ # # for a full-line comment
+ # ' ' for a blank line
+ # otherwise returns final token type
my ( $ibeg, $iend ) = @_;
if ( $type_i eq '#' ) {
$i--;
if ( $i < $ibeg ) {
- return wantarray ? ( $type_i, $ibeg ) : $type_i;
+ return $type_i;
}
$type_i = $types_to_go[$i];
}
if ( $type_i eq 'b' ) {
$i--;
if ( $i < $ibeg ) {
- return wantarray ? ( $type_i, $ibeg ) : $type_i;
+ return $type_i;
}
$type_i = $types_to_go[$i];
}
{
$type_i = 'b';
}
- return wantarray ? ( $type_i, $i ) : $type_i;
+ return $type_i;
} ## end sub terminal_type_i
sub pad_array_to_go {