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

[perl #133669] Silently ignores commonly-misspelled PERL5OPTSenvironment variable

Thread Next
From:
James E Keenan via RT
Date:
December 6, 2018 20:28
Subject:
[perl #133669] Silently ignores commonly-misspelled PERL5OPTSenvironment variable
Message ID:
rt-4.0.24-17605-1544128083-516.133669-15-0@perl.org
On Mon, 19 Nov 2018 17:07:44 GMT, leonerd@leonerd.org.uk wrote:
> This is a bug report for perl from leo@shy.leo,
> generated with the help of perlbug 1.40 running under perl 5.26.2.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> I often forget the name of the variable and get confused when (e.g.)
> 
> $ PERL5OPTS=-MDevel::Cover prove -r
> 
> doesn't work. The variable name I wanted was PERL5OPT.
> 
> 
> I wonder if core could add a little
> 
> if(getenv("PERL5OPTS"))
>     warn("PERL5OPTS is set; did you mean to set PERL5OPT instead?");
> 
> 

If you could propose a patch (including a test), that would probably move discussion forward.

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

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

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