Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Exporter/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ our $VERSION = '1.006002';
our @EXPORT_OK = qw< mkopt mkopt_hash _croak _carp >;

BEGIN {
*_HAS_NATIVE_LEXICAL_SUB = ( $] ge '5.037002' )
*_HAS_NATIVE_LEXICAL_SUB = ( "$]" >= 5.037002 )
? sub () { !!1 }
: sub () { !!0 };
*_HAS_MODULE_LEXICAL_SUB = ( $] ge '5.011002' and eval('require Lexical::Sub') )
*_HAS_MODULE_LEXICAL_SUB = ( "$]" >= 5.011002 and eval('require Lexical::Sub') )
? sub () { !!1 }
: sub () { !!0 };
};
Expand Down Expand Up @@ -134,7 +134,7 @@ sub unimport
sub _exporter_lexical_installer {
_HAS_NATIVE_LEXICAL_SUB and return sub {
my ( $sigilname, $sym ) = @{ $_[1] };
no warnings ( $] ge '5.037002' ? 'experimental::builtin' : () );
no warnings ( "$]" >= 5.037002 ? 'experimental::builtin' : () );
builtin::export_lexically( $sigilname, $sym );
};
_HAS_MODULE_LEXICAL_SUB and return sub {
Expand Down
4 changes: 2 additions & 2 deletions meta/DYNAMIC_CONFIG.PL
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
$prereq_type = 'requires';
}

if ( $] ge 5.011002 and $] lt 5.037002 ) {
if ( "$]" >= 5.011002 and "$]" < 5.037002 ) {
$meta->{prereqs}{runtime}{$prereq_type}{'Lexical::Var'} = '0.010';
}

# idk, this should be automatic or summint? put it in explicitly.
$meta->{prereqs}{runtime}{requires}{'Test::More'} = '0.47'
if $] lt 5.006002;
if "$]" < 5.006002;