Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
suppress "Smartmatch is experimental" warnings on 5.18+
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Adams committed May 29, 2013
1 parent fc99d08 commit 9c34c97
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/perl5i/0/ARRAY.pm
Expand Up @@ -4,6 +4,7 @@ use 5.010;

use strict;
use warnings;
no if $] >= 5.018000, warnings => 'experimental::smartmatch';

sub ARRAY::first {
my ( $array, $filter ) = @_;
Expand Down
1 change: 1 addition & 0 deletions lib/perl5i/1/ARRAY.pm
Expand Up @@ -4,6 +4,7 @@ use 5.010;

use strict;
use warnings;
no if $] >= 5.018000, warnings => 'experimental::smartmatch';

use perl5i::1::autobox;

Expand Down
1 change: 1 addition & 0 deletions lib/perl5i/1/Meta/Instance.pm
Expand Up @@ -2,6 +2,7 @@ package perl5i::1::Meta::Instance;

use strict;
use warnings;
no if $] > 5.018000, warnings => 'experimental::smartmatch';

require Scalar::Util;
require overload;
Expand Down
1 change: 1 addition & 0 deletions lib/perl5i/2/ARRAY.pm
Expand Up @@ -4,6 +4,7 @@ use 5.010;

use strict;
use warnings;
no if $] >= 5.018000, warnings => 'experimental::smartmatch';

# Don't accidentally turn carp/croak into methods.
require Carp::Fix::1_25;
Expand Down
1 change: 1 addition & 0 deletions lib/perl5i/2/Meta/Instance.pm
Expand Up @@ -5,6 +5,7 @@ package perl5i::2::Meta::Instance;
use 5.010_000;
use strict;
use warnings;
no if $] >= 5.018000, warnings => 'experimental::smartmatch';

# Don't import anything that might be misinterpreted as a method
require Scalar::Util;
Expand Down
2 changes: 2 additions & 0 deletions lib/perl5i/2/equal.pm
@@ -1,6 +1,8 @@
package perl5i::2::equal;

use strict;
no if $] >= 5.018000, warnings => 'experimental::smartmatch';

use perl5i::2::autobox;

sub are_equal {
Expand Down

0 comments on commit 9c34c97

Please sign in to comment.