Subject: | autodie not imported |
Date: | Tue, 6 Jan 2015 18:28:54 +0200 |
To: | bug-Syntax-Collector [...] rt.cpan.org |
From: | Ilmari Ikonen <ilmari.ikonen84 [...] gmail.com> |
This is a very useful module! I have used it for a while now. Recently
I realized that it does not work for autodie. Below the code that
should produce error but does not:
package A;
our $VERSION=1;
use Syntax::Collector q/
use autodie 0;
/;
1;
package B;
use A;
open my $fh, "<", "asdf";
1;
As a workaround, from perl5i I found that they have added use parent
'autodie' and then goto &autodie::import to make autodie work.