From: gfx Date: Sun, 1 Nov 2009 06:20:51 +0000 (+0900) Subject: Tidy X-Git-Tag: 0.40_05~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f15868c32a6cd32ece1e1bc7f0ca14f51055190a;p=gitmo%2FMouse.git Tidy --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 8d4eadb..6e5c1be 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -101,10 +101,10 @@ sub does_role{ } BEGIN { - my $impl; + my $get_linear_isa; if ($] >= 5.009_005) { require mro; - $impl = \&mro::get_linear_isa; + $get_linear_isa = \&mro::get_linear_isa; } else { my $e = do { local $@; @@ -112,7 +112,7 @@ BEGIN { $@; }; if (!$e) { - $impl = \&mro::get_linear_isa; + $get_linear_isa = \&mro::get_linear_isa; } else { # VVVVV CODE TAKEN FROM MRO::COMPAT VVVVV my $_get_linear_isa_dfs; # this recurses so it isn't pretty @@ -134,13 +134,13 @@ BEGIN { return \@lin; }; # ^^^^^ CODE TAKEN FROM MRO::COMPAT ^^^^^ - $impl = $_get_linear_isa_dfs; + $get_linear_isa = $_get_linear_isa_dfs; } } no warnings 'once'; - *get_linear_isa = $impl; + *get_linear_isa = $get_linear_isa; }