Skip to content

Commit

Permalink
Merge pull request #161 from jkeenan/no-more-smartmatch-20240820
Browse files Browse the repository at this point in the history
Smartmatch discontinued beginning perl-5.41.3
  • Loading branch information
tobyink authored Sep 1, 2024
2 parents 48a4d53 + ff372f1 commit 71a54e1
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 71a54e1

Please sign in to comment.