develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133130] `no autodie` removes system function

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
April 21, 2018 02:12
Subject:
[perl #133130] `no autodie` removes system function
Message ID:
rt-4.0.24-13872-1524276725-1305.133130-15-0@perl.org
On Fri, 20 Apr 2018 12:33:22 GMT, shcorey wrote:
> Reply-To: shawnhcorey@gmail.com
> Cc: SHCOREY@cpan.org
> To: perlbug@perl.org
> From: shawnhcorey@gmail.com
> Subject: `no autodie` removes system function
> Message-Id: <5.26.1_5820_1524227202@sage.Home>
> 
> 
> This is a bug report for perl from shawnhcorey@gmail.com,
> generated with the help of perlbug 1.40 running under perl 5.26.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Using `no autodie` will remove the system function.
> 
> #!/usr/bin/env perl
> 
> use strict;
> use warnings;
> 
> use autodie;
> {
>     no autodie;
> }
> system( qw( ls . ));
> 
> Emits the error:
> Undefined subroutine called at ./eg-no-autodie-system.pl line 10.
> 

'autodie' is maintained upstream on CPAN (http://search.cpan.org/~pjf/autodie-2.29/).  This problem has been reported previously in that distribution's bug tracker:

https://rt.cpan.org/Ticket/Display.html?id=114798

My hunch is that this is not so much a pure BBC as a bad interaction between blead and CPAN.  Am trying to bisect blead to see the point at which the 'autodie' shipped with blead exhibits this behavior.  (Hint: probably between 5.20 and 5.22.)

Thank you very much.


-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133130

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About