Subject: | custom import -> blacklist violation |
nextgen does not work like autodie's system or fatalise warnings, and when I try to
force it, I get a violation. The workaround is to load the nextgen pragma last.
Show quoted text
> perl -E'use autodie qw(:all); system [0], "/foo"'
"/foo" failed to start: "Datei oder Verzeichnis nicht gefunden" at (eval 55) line 13
at -e line 1
Show quoted text> perl -E'use nextgen; system [0], "/foo"'
Can't exec "ARRAY(0x8bdd00)": Datei oder Verzeichnis nicht gefunden at -e line 1.
Show quoted text> perl -E'use nextgen; use autodie qw(:all); system [0], "/foo"'
nextgen::blacklist violation with import attempt for: [ autodie (autodie.pm) ] try 'use
nextgen' instead.
nextgen imports 'autodie'
BEGIN failed--compilation aborted at -e line 1.
Show quoted text> perl -E'use warnings FATAL => "all"; say my $foo; say "survived"'
Use of uninitialized value $foo in say at -e line 1.
Show quoted text> perl -E'use nextgen; say my $foo; say "survived"'
Use of uninitialized value $foo in say at -e line 1.
survived
Show quoted text> perl -E'use nextgen; use warnings FATAL => "all"; say my $foo; say "survived"'
nextgen::blacklist violation with import attempt for: [ warnings (warnings.pm) ] try
'use nextgen' instead.
nextgen imports 'warnings'
BEGIN failed--compilation aborted at -e line 1.