Skip to content

Commit

Permalink
enable features conditionally, added signatures feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Aug 13, 2015
1 parent ad20805 commit f8a52ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojo/Base.pm
Expand Up @@ -89,8 +89,9 @@ sub import {
$_->import for qw(strict warnings utf8);
feature->import(':5.10');

# Signatures for Perl 5.20+
if ($^V >= 5.020000) {
my %feature;
$feature{$_} = 1 for @_;
if ($features{signatures}) {
feature->import('signatures');
warnings->unimport('experimental::signatures');
}
Expand Down

0 comments on commit f8a52ba

Please sign in to comment.