projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ecbccf9
)
Use get_package_symbol instead of ${ $meta->name . '::AUTOLOAD' }
Shawn M Moore [Sun, 18 May 2008 10:57:58 +0000 (10:57 +0000)]
examples/C3MethodDispatchOrder.pod
patch
|
blob
|
blame
|
history
diff --git
a/examples/C3MethodDispatchOrder.pod
b/examples/C3MethodDispatchOrder.pod
index
f6156d5
..
a279e04
100644
(file)
--- a/
examples/C3MethodDispatchOrder.pod
+++ b/
examples/C3MethodDispatchOrder.pod
@@
-28,7
+28,7
@@
C3MethodDispatchOrder->meta->add_around_method_modifier('initialize' => sub {
my $method_name;
{
no strict 'refs';
- my $label = ${$meta->name . '::AUTOLOAD'};
+ my $label = ${ $meta->get_package_symbol('$AUTOLOAD') };
$method_name = (split /\:\:/ => $label)[-1];
}
my $method = $_find_method->($meta, $method_name);