File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 68
68
69
69
use strict;
70
70
use warnings;
71
+ use List::Util ' all' ;
71
72
72
73
my $nroff_min_indent = 4; # for non-heading lines
73
74
# 80 column terminal - 2 for pager adding 2 columns;
@@ -1369,11 +1370,12 @@ ($$$)
1369
1370
my @base_args = $items [0]-> {args }-> @*;
1370
1371
my $base_thread_context = $items [0]-> {flags } =~ / T/ ;
1371
1372
for (my $i = 1; $i < @items ; $i ++) {
1372
- no warnings ' experimental::smartmatch' ;
1373
1373
my $item = $items [$i ];
1374
+ my $args_are_equal = @baseargs == $item -> {args }-> @*
1375
+ && all { $baseargs [$_ ] eq $item -> {args }{$_ } } keys @baseargs ;
1374
1376
$need_individual_usage = 1
1375
1377
if $item -> {ret_type } ne $base_ret_type
1376
- || ! ( $item -> { args } -> @* ~~ @base_args )
1378
+ || ! $args_are_equal
1377
1379
|| ( $item -> {flags } =~ / T/
1378
1380
!= $base_thread_context );
1379
1381
my $ret_length = length $item -> {ret_type };
You can’t perform that action at this time.
0 commit comments