Skip to content

Commit

Permalink
Update experimental to 0.029
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Maischein committed Oct 28, 2022
1 parent 7e21f44 commit fdc8a0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ package Maintainers;
},

'experimental' => {
'DISTRIBUTION' => 'LEONT/experimental-0.028.tar.gz',
'DISTRIBUTION' => 'LEONT/experimental-0.029.tar.gz',
'FILES' => q[cpan/experimental],
'EXCLUDED' => [qr{^xt/}],
},
Expand Down
8 changes: 6 additions & 2 deletions cpan/experimental/lib/experimental.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package experimental;
$experimental::VERSION = '0.028';
$experimental::VERSION = '0.029';
use strict;
use warnings;
use version ();
Expand All @@ -8,6 +8,7 @@ BEGIN { eval { require feature } };
use Carp qw/croak carp/;

my %warnings = map { $_ => 1 } grep { /^experimental::/ } keys %warnings::Offsets;
my %removed_warnings = map { $_ => 1 } grep { /^experimental::/ } keys %warnings::NoOp;
my %features = map { $_ => 1 } $] > 5.015006 ? keys %feature::feature : do {
my @features;
if ($] >= 5.010) {
Expand Down Expand Up @@ -73,6 +74,9 @@ sub _enable {
feature->import($pragma);
_enable(@{ $additional{$pragma} }) if $additional{$pragma};
}
elsif ($removed_warnings{"experimental::$pragma"}) {
_enable(@{ $additional{$pragma} }) if $additional{$pragma};
}
elsif (not exists $min_version{$pragma}) {
croak "Can't enable unknown feature $pragma";
}
Expand Down Expand Up @@ -136,7 +140,7 @@ experimental - Experimental features made easy
=head1 VERSION
version 0.028
version 0.029
=head1 SYNOPSIS
Expand Down

0 comments on commit fdc8a0b

Please sign in to comment.