Skip Menu |

This queue is for tickets about the autodie CPAN distribution.

Report information
The Basics
Id: 72053
Status: open
Priority: 0/
Queue: autodie

Owner: Nobody in particular
Requestors: PMORCH [...]
zdm [...]
Cc: peter [...]

Bug Information
Severity: (no value)
Broken in:
  • 2.06_01
  • 2.10
Fixed in: (no value)

CC: peter [...]
Subject: "no autodie" doesn't respect lexical scope
Download (untitled) / with headers
text/plain 359b
I'm expecting: #!/usr/bin/perl use autodie; # autodie in effect here { no autodie; # autodie is not in effect here } # autodie should be in effect here because of the supposedly lexical scope # of autodie, but this doesn't die: open my $i, '<', '/nonexistent'; See for more details.
Subject: no autodie ignore scope
Date: Tue, 25 Jun 2013 02:52:45 +0300
To: bug-autodie [...]
From: zdm <zdm [...]>
Download (untitled) / with headers
text/plain 536b
As i correctly understand if i use "no autodie" for some code block if must be effective only for this code block lexical scope. But following code disable autodie not only for it's lexical scope but for all code below: use autodie qw(:all); { no autodie qw(open); open(my $fh, "<", "no-die.txt") || print "no-die.txt skipped\n"; } open(my $fh, "<", "die.txt") || print "die.txt skipped\n"; 1; __END__ The output: no-die.txt skipped die.txt skipped Bug detected in activeperl-5.16.3-x64 on windows-8-x64 and centos-6.4-x64.
Download (untitled) / with headers
text/plain 117b
Due to Niels' amazing efforts, we have a fix for this. I'm hoping to push a release to CPAN today or tomorrow. ~ pjf

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to