cpan/autodie/t/rt-74246.t
raw| 1 | #!/usr/bin/perl -w |
| 2 | |
| 3 | use strict; |
| 4 | |
| 5 | use Test::More tests => 1; |
| 6 | |
| 7 | eval q{ |
| 8 | use strict; |
| 9 | no warnings; # Suppress a "helpful" warning on STDERR |
| 10 | use autodie qw(open); |
| 11 | $open = 1; |
| 12 | }; |
| 13 | like($@, qr/Global symbol "\$open" requires explicit package name/, |
| 14 | 'autodie does not break "use strict;"'); |