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

Re: Perl 7 - updates

Thread Previous | Thread Next
Kent Fredric
July 4, 2020 00:38
Re: Perl 7 - updates
Message ID:
On Sat, 4 Jul 2020 at 12:27, Todd Rinaldo <> wrote:
> What I really kinda want for my own company's code base is 'use vl' (latest) or 'use vi' (infinity?) which would always choose all the new features of the coming major version. If that existed, our code would just set that and as we always do, adjust our code as we switch to a new version of Perl. Then we don't have to update 5000 files in our code base when we switch to Perl 8 or 9. But this is a wish list item. If we don't get this, we'll just do a big commit and move on ¯\_(ツ)_/¯.

Fortunately, due to "vl" and "vi" being parsed as strings, not
versions, you can probably do that as  a CPAN module.

sub import {
    my $v = "$]";
    $v =~ s/\..*//;

Or something along those lines.



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About