Skip to content

Commit

Permalink
Base: simplify declaration of ~~ overload
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen authored and Arthur Axel 'fREW' Schmidt committed Jul 7, 2014
1 parent 149b4bf commit 82e524c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Syntax/Keyword/Junction/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use overload(
'lt' => "str_lt",
'bool' => "bool",
'""' => sub {shift},
$] >= 5.010001 ? ('~~' => 'match') : (),
);

use if ($] >= 5.010001), overload => '~~' => 'match';

sub new { bless \@_, shift }

Expand Down

0 comments on commit 82e524c

Please sign in to comment.