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

Re: Perl 7 - updates

Thread Previous | Thread Next
Tom Molesworth via perl5-porters
July 5, 2020 21:31
Re: Perl 7 - updates
Message ID:
On Mon, 6 Jul 2020 at 04:52, Darren Duncan <> 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

Not a great start!

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

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, 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About