Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More: Scoping issue with "no autodie" and the "system" sub #80

Open
pmorch opened this issue Nov 7, 2018 · 1 comment
Open

More: Scoping issue with "no autodie" and the "system" sub #80

pmorch opened this issue Nov 7, 2018 · 1 comment

Comments

@pmorch
Copy link

pmorch commented Nov 7, 2018

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.

pmorch added a commit to pmorch/autodie that referenced this issue Nov 7, 2018
It reproduces the issue Dual-Life#80 :

More: Scoping issue with "no autodie" and the "system" sub
Dual-Life#80
@cheese
Copy link

cheese commented Apr 4, 2020

I met a similar issue on Fedora 32 with Perl 5.30.2 and autodie 2.32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants