develooper Front page | perl.perl5.porters | Postings from November 2015

Re: [perl #126715] Deprecate barewords?

Thread Previous | Thread Next
From:
Eirik Berg Hanssen
Date:
November 23, 2015 16:40
Subject:
Re: [perl #126715] Deprecate barewords?
Message ID:
CAHAeAG5ywpqctt+mdYBMwifcyFJXZpW8B+9_TttUq2EAp5GuvQ@mail.gmail.com
On Mon, Nov 23, 2015 at 4:47 PM, Abigail <abigail@abigail.be> wrote:

> What is the gain by making this a mandatory warning? If noone is using
> it, adding a warning doesn't do much. If people are, what good does it
> them?
>

  It helps people who are not intentionally using this (mis-)feature, but
happen by accident to write code typically one-liners) that uses it (and do
not explicitly enable strictures nor warnings – typically in one-liners, I
guess).

  Like, forgetting to import a constant, or misspelling its name …


Eirik

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