DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

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

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.

Top comments (2)

Collapse
 
matthewpersico profile image
Matthew O. Persico

What does this have to do with Perl 7?

Collapse
 
yukikimoto profile image
Yuki Kimoto

Maybe.