What version of Perl introduced lexical my subroutines?

90 Views Asked by At

According to this bug report one of my modules is generating this error on older Perls,

Experimental "my" subs not enabled at <file.pm> ...

What should I set my minimum perl version too?

1

There are 1 best solutions below

0
On BEST ANSWER

From perldoc perlexperiment

Lexical subroutines

  • Introduced in Perl 5.18.0
  • Accepted in Perl 5.26.0