projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8591e81
)
silence BUILD used only once warning
Yuval Kogman [Sat, 28 Jun 2008 17:06:20 +0000 (17:06 +0000)]
lib/Mouse/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Object.pm
b/lib/Mouse/Object.pm
index
04ad0ef
..
8bf68d2
100644
(file)
--- a/
lib/Mouse/Object.pm
+++ b/
lib/Mouse/Object.pm
@@
-90,9
+90,9
@@
sub BUILDALL {
# short circuit
return unless $self->can('BUILD');
- no strict 'refs';
-
for my $class (reverse $self->meta->linearized_isa) {
+ no strict 'refs';
+ no warnings 'once';
my $code = *{ $class . '::BUILD' }{CODE}
or next;
$code->($self, @_);