develooper Front page | perl.perl5.porters | Postings from July 2020

Re: Perl 7 - updates

Thread Previous | Thread Next
From:
Tom Molesworth via perl5-porters
Date:
July 5, 2020 21:31
Subject:
Re: Perl 7 - updates
Message ID:
CAGXhHdm0n9wNmVcH1tOXFNS7MwoB6Y+J8A6k4=1Okg7TUo8T-A@mail.gmail.com
On Mon, 6 Jul 2020 at 04:52, Darren Duncan <darren@darrenduncan.net> wrote:

> Presumably a large fraction of CPAN modules already have a "use v5" in them


In core Perl alone, we have nearly 500 which *don't* include that:

grep -Lr '^use v?5' perl5/cpan/ | grep -P [.]pm$ | wc -l
460

Not a great start!

I would strongly recommend hard data here, rather than speculation:
grep.metacpan.org is publicly available, and even without that, some random
sampling on toolchain or framework modules should yield results pretty
quickly.

as that is a best practice for code intended to be reused, so they're good.


So where is this best practice defined? See for example
https://mojolicious.org/, currently the most popular web framework for
Perl5 - if it's not used in the tutorials and examples there, it's likely
that a significant amount of new code is being written which omits it.

Enforcing a `use v5` line in existing code is a massive amount of effort
for no real gain.

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