Perl 5.42 adds lexical methods and explicit source encoding
engineeringperlclassescompatibilityLexical methods give Perl's class experiment private helpers through lexical binding. Source-encoding checks and retained smartmatch features make the release's compatibility choices explicit.