Skip to content

Commit

Permalink
Smartmatch discontinued beginning perl-5.41.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Aug 20, 2024
1 parent 48a4d53 commit ff372f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Type/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ sub _croak ($;@) { require Error::TypeTiny; goto \&Error::TypeTiny::croak }
sub _swap { $_[2] ? @_[ 1, 0 ] : @_[ 0, 1 ] }

BEGIN {
my $support_smartmatch = 0+ !!( $] >= 5.010001 );
my $support_smartmatch = 0+ !!( $] >= 5.010001 && $] <= 5.041002 );
eval qq{ sub SUPPORT_SMARTMATCH () { !! $support_smartmatch } };

my $fixed_precedence = 0+ !!( $] >= 5.014 );
Expand Down

0 comments on commit ff372f1

Please sign in to comment.