projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
01afd8f
)
Add a "no warnings 'once'"
gfx [Mon, 28 Sep 2009 00:56:27 +0000 (09:56 +0900)]
lib/Mouse/Meta/Method/Constructor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Method/Constructor.pm
b/lib/Mouse/Meta/Method/Constructor.pm
index
ea37419
..
596dccf
100644
(file)
--- a/
lib/Mouse/Meta/Method/Constructor.pm
+++ b/
lib/Mouse/Meta/Method/Constructor.pm
@@
-182,6
+182,7
@@
sub _generate_BUILDALL {
my @code;
for my $class ($metaclass->linearized_isa) {
no strict 'refs';
+ no warnings 'once';
if (*{ $class . '::BUILD' }{CODE}) {
unshift @code, qq{${class}::BUILD(\$instance, \$args);};