Skip to content

Commit

Permalink
Fixed Warning: Use of "caller" without parentheses is ambiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed Sep 9, 2011
1 parent 233dc5a commit dfeb271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sub import {
*{$p.'::extends'} = sub { @{(caller).'::ISA'} = $_[0] };
*{$p.'::has'} = sub {
my ($n, %a) = @_;
*{caller."::$n"} =
*{(caller)."::$n"} =
sub {@_-1?$_[0]{$n}=$_[1]:$_[0]{$n}//=($a{default}//sub{})->($_[0])}
};
}
Expand Down

0 comments on commit dfeb271

Please sign in to comment.