########
--FILE-- abc.pm
+$| = 1;
package abc ;
no warnings ;
use warnings::register ;
use warnings 'abc';
abc::in1() ;
EXPECT
-my message 1 at - line 3
-my message 2 at - line 3
-my message 3 at - line 3
ok1
ok2
ok3
ok4
+my message 1 at - line 3
+my message 2 at - line 3
+my message 3 at - line 3
########
--FILE-- def.pm
sub in1 { no warnings ; in2() }
1;
--FILE-- abc.pm
+$| = 1;
package abc ;
use def ;
use warnings 'def';
no warnings;
abc::in1() ;
EXPECT
-my message 1 at abc.pm line 4
- abc::in1() called at - line 3
-my message 2 at abc.pm line 4
- abc::in1() called at - line 3
-my message 3 at abc.pm line 4
- abc::in1() called at - line 3
ok1
ok2
ok3
ok4
+my message 1 at abc.pm line 5
+ abc::in1() called at - line 3
+my message 2 at abc.pm line 5
+ abc::in1() called at - line 3
+my message 3 at abc.pm line 5
+ abc::in1() called at - line 3
########
--FILE-- def.pm
+$| = 1;
package def ;
no warnings ;
use warnings::register ;
use warnings 'abc';
abc::in1() ;
EXPECT
-my message 1 at - line 4
-my message 3 at - line 4
ok2
ok3
ok4
ok5
+my message 1 at - line 4
+my message 3 at - line 4
########
--FILE-- def.pm
}
1;
--FILE-- abc.pm
+$| = 1;
package abc ;
use warnings::register ;
use def ;
$b = new def ;
$b->in1() ;
EXPECT
-my message 1 at - line 5
-my message 2 at - line 5
-my message 4 at - line 5
-my message 8 at - line 5
-my message 1 at - line 8
-my message 2 at - line 8
-my message 4 at - line 8
ok1
ok2
ok3
ok4
ok5
ok6
+my message 1 at - line 5
+my message 2 at - line 5
+my message 4 at - line 5
+my message 8 at - line 5
**
ok1
ok2
ok3
ok4
ok5
+my message 1 at - line 8
+my message 2 at - line 8
+my message 4 at - line 8