Skip to content

Commit 26bff98

Browse files
committed
Remove ~~ from autodoc.pl
1 parent 22d0105 commit 26bff98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autodoc.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969
use strict;
7070
use warnings;
71+
use List::Util 'all';
7172

7273
my $nroff_min_indent = 4; # for non-heading lines
7374
# 80 column terminal - 2 for pager adding 2 columns;
@@ -1369,11 +1370,12 @@ ($$$)
13691370
my @base_args = $items[0]->{args}->@*;
13701371
my $base_thread_context = $items[0]->{flags} =~ /T/;
13711372
for (my $i = 1; $i < @items; $i++) {
1372-
no warnings 'experimental::smartmatch';
13731373
my $item = $items[$i];
1374+
my $args_are_equal = @baseargs == $item->{args}->@*
1375+
&& all { $baseargs[$_] eq $item->{args}{$_} } keys @baseargs;
13741376
$need_individual_usage = 1
13751377
if $item->{ret_type} ne $base_ret_type
1376-
|| ! ($item->{args}->@* ~~ @base_args)
1378+
|| ! $args_are_equal
13771379
|| ( $item->{flags} =~ /T/
13781380
!= $base_thread_context);
13791381
my $ret_length = length $item->{ret_type};

0 commit comments

Comments
 (0)