Perl 5.36 2022 Perl New Release contains "use warnings" in use v5.36

Yuki Kimoto - SPVM Author - Dec 14 '21 - - Dev Community

Perl 5.36 2022 Perl New Release contains "use warnings" in use v5.36.

We always write the following lines in Perl programs.

use strict;
use warnings;

People always ask "Why do I write these lines always?".

The reason is to keep backward compatible. Perl needs to keep backward compatible as possible because Perl is one of base systems such as Git, OpenSSL, Ubuntu/Debian toolchains.

But this is a little boring.

Perl 5.36 2022 Perl New Release contains "use warnings" in use v5.36

use v5.36;

# This means the following lines + alpha
use strict;
use warnings;

"use v5.36" will become "use v7" in version 7.

use v7;

I'm looking forward to the Perl 7 Release.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .