plvicente has asked for the wisdom of the Perl Monks concerning the following question:

Hello! Can I use 5.32 as strict keyword? Like this? Or should i use 5.010!?

#!/bin/perl use strict; use 5.032;

Replies are listed 'Best First'.
Re: use 5.32
by haukex (Archbishop) on May 05, 2021 at 18:10 UTC

    As per use, any use VERSION where VERSION is 5.12 or higher enables strict, as well as the corresponding feature bundle. I would recommend also enabling warnings (see Use strict and warnings), i.e.

    #!/usr/bin/env perl use warnings; use 5.032; # or use v5.32

    The above shebang uses the perl that's in your PATH, for a specific perl, use e.g. #!/usr/bin/perl.

      Thank you. I decided to use #!/usr/bin/perl instead of #!/usr/bin/env perl