From: gfx Date: Sat, 31 Oct 2009 04:26:07 +0000 (+0900) Subject: Use bit-or, not simple assignment X-Git-Tag: 0.40_04~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4b55a023c6fe98b7a512956836d4f114b192b2f5;p=gitmo%2FMouse.git Use bit-or, not simple assignment --- diff --git a/lib/Mouse/Exporter.pm b/lib/Mouse/Exporter.pm index bd0d7ef..9f95612 100644 --- a/lib/Mouse/Exporter.pm +++ b/lib/Mouse/Exporter.pm @@ -14,7 +14,7 @@ require Mouse::Util; sub import{ $^H |= _strict_bits; # strict->import; - ${^WARNING_BITS} = $warnings::Bits{all}; # warnings->import; + ${^WARNING_BITS} |= $warnings::Bits{all}; # warnings->import; return; } @@ -166,7 +166,7 @@ sub do_import { } $^H |= _strict_bits; # strict->import; - ${^WARNING_BITS} = $warnings::Bits{all}; # warnings->import; + ${^WARNING_BITS} |= $warnings::Bits{all}; # warnings->import; if($spec->{INIT_META}){ my $meta;