autodie
autodie copied to clipboard
More: Scoping issue with "no autodie" and the "system" sub
I think this a new issue that looks like #69:
pvm92@peter:~> cat no-autodie-twice.pl
#!/usr/bin/perl
{ no autodie; }
{ no autodie; }
system("echo something");
pvm92@peter:~> ./no-autodie-twice.pl
Undefined subroutine called at ./no-autodie-twice.pl line 4.
pvm92@peter:~> perl -Mautodie -E 'say $autodie::VERSION'
2.29
# It doesn't help to use the git master HEAD
pvm92@peter:~> (cd autodie && git log -1)
commit 79f7f102680de60bbb6eaee0e89b4032bf4547c9
Merge: bbfe28c 933b8fc
Author: Niels Thykier <[email protected]>
Date: Sun Sep 25 11:22:47 2016 +0200
Merge pull request #74 from pjf/ack
Ackrc: Ignore build directories
pvm92@peter:~> perl -Iautodie/lib ./no-autodie-twice.pl
Undefined subroutine called at ./no-autodie-twice.pl line 4.
pvm92@peter:~> perl -V | grep ^Summary
Summary of my cperl (revision 5 version 29 subversion 0) configuration:
Same behavior occurs with debian stretch/9's default perl (5.24.1) with or without libautodie-perl installed.
I met a similar issue on Fedora 32 with Perl 5.30.2 and autodie 2.32.