{"id":138692,"date":"2025-07-03T23:12:17","date_gmt":"2025-07-03T21:12:17","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/dostupen-yazyk-programmirovaniya-perl-5-42"},"modified":"2025-07-03T23:12:17","modified_gmt":"2025-07-03T21:12:17","slug":"dostupen-yazyk-programmirovaniya-perl-5-42","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/news\/dostupen-yazyk-programmirovaniya-perl-5-42","title":{"rendered":"The programming language Perl 5.42 is now available.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>After a year of development, the release of the new stable branch of the Perl programming language \u2014 5.42 has been published. Approximately 280 thousand lines of code were changed (excluding documentation and automatically generated code \u2014 93 thousand), affecting 1500 files, with the involvement of 64 developers.    <\/p>\n<p>Branch 5.42 was released according to the approved fixed development schedule established twelve years ago, which implies the release of new stable branches once a year and corrective releases every three months. The first corrective release Perl 5.42.1 is expected to be released in about a month, which will address the most significant bugs identified during the implementation of Perl 5.42.0. Simultaneously with the release of Perl 5.42, support for the 5.38 branch has ended, with updates for this branch being released in the future only if critical security issues are identified. The process of developing the experimental branch 5.43 will begin shortly, based on which a stable release of Perl 5.44 will be formed in June 2026, unless a decision is made to switch to numbering 7.x.        <\/p>\n<p>Key changes:   <\/p>\n<ul>\n<li class=\"l\"> Experimental list processing operators have been added \u2014 \u2018any { BLOCK } @list\u2019 and \u2018all { BLOCK } @list\u2019, which are similar to the \u2018grep { BLOCK } @list\u2019 operator but can return only true or false values. The \u2018all\u2019 operator returns \u2018true\u2019 if the condition is met for all elements of the list, while the \u2018any\u2019 operator returns \u2018true\u2019 if the condition is met for at least one element. The functionality of the operators is similar to the functions from the List::Util module, but the built-in versions are faster and consume less memory.         use v5.42;     use feature 'keyword_all';     no warnings 'experimental::keyword_all';     my @numbers = ...;     if ( all { $_ % 2 == 0 } @numbers ) {         say 'All the numbers are even';     }\n<li class=\"l\"> For fields defined within a class, the \u2018:writer\u2019 attribute has been implemented, used for automatically creating a method that writes the value of a variable to the field for the current instance of the class.       class Point {         field $x :reader :writer :param;         field $y :reader :writer :param;     }     my $p = Point-&gt;new( x =&gt; 20, y =&gt; 40 );     $p-&gt;set_x(60);\n<li class=\"l\"> Support for lexical method definitions has been added, allowing methods that are only available within the lexical scope of the block in which they are created, similar to the definition of lexical subs (&#171;lexical_subs&#187;). The expression &#171;my \u0438\u043c\u044f_\u043c\u0435\u0442\u043e\u0434\u0430&#187; is used to create such methods.\n<li class=\"l\"> The operator &#171;-&gt;&#038;&#187; has been added, allowing for the invocation of subs that are in the lexical scope as if they were methods. Combined with the ability to define lexical methods, the new operator implements functionality similar to private methods.\n<li class=\"l\"> An assignment operator &#171;A ^^= B&#187; has been added, performing the operation &#171;A = A XOR B&#187;.\n<li class=\"l\"> The pragma &#171;source::encoding&#187; has been added to define the source code encoding. For code in ASCII encoding, &#171;use source::encoding &#8216;ascii'&#187; can be specified (default), and for UTF-8 \u2014 &#171;use source::encoding &#8216;utf8'&#187;, with the latter being equivalent to &#171;use utf8&#187;. The interpreter will produce an error if UTF-8 characters are found in code marked as ASCII, or if escape sequences &#171;&#092;x{}&#187; are used in code marked as UTF-8. To disable encoding checks for a part of the code, &#171;use no source::encoding&#187; can be used. In practice, the added pragma can be useful for identifying cases where the developer forgot to specify &#171;use utf8&#187; for UTF-8 encoded code.\n<li class=\"l\"> A function chdir() has been added to the namespace &#171;CORE::&#187;. For example, this function can now be accessed as &#171;&#038;CORE::chdir($dir)&#187; or &#171;my $ref = &#092;&#038;CORE::chdir; $ref-&gt;($dir)&#187;.\n<li class=\"l\"> The expression &#8216;no feature &#171;apostrophe_as_package_separator&#187;&#8216; has been added to disable the support for using the symbol &#187; &#8216; &#187; as a package name separator (e.g., &#171;My&#8217;Module&#8217;Var&#187; instead of &#171;My::Module::Var&#187;). Initially, in Perl 5.42, there were plans to remove support for such separators, which had previously been deprecated, but discussions concluded that this capability should be retained by default while providing an option to disable it.\n<li class=\"l\"> The functionality of 'switch' and the operator '~~' has been moved to the list of deprecated features that were planned for removal. Starting from Perl versions 5.36 and 5.42, 'switch' and '~~' are disabled by default when binding code to specific versions of the language (for example, when using 'use v5.42'), but can be activated with the statements 'use feature 'switch'' and 'use feature 'smartmatch'.\n<li class=\"l\"> Support for Unicode specification 16.0 has been added.            <\/ul>\n<p>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=63519\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0440\u0435\u043b\u0438\u0437 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl &#8212; 5.42. \u041f\u0440\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u0431\u044b\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043e \u043e\u043a\u043e\u043b\u043e 280 \u0442\u044b\u0441\u044f\u0447 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 (\u0431\u0435\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 &#8212; 93 \u0442\u044b\u0441\u044f\u0447\u0438), \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b\u0438 1500 \u0444\u0430\u0439\u043b\u043e\u0432, \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 64 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430. \u0412\u0435\u0442\u043a\u0430 5.42 \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u043c \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u043c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-138692","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0440\u0435\u043b\u0438\u0437 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl - 5.42.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/news\/dostupen-yazyk-programmirovaniya-perl-5-42\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl 5.42 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0440\u0435\u043b\u0438\u0437 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl - 5.42.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/news\/dostupen-yazyk-programmirovaniya-perl-5-42\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-07-03T21:12:17+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-07-03T21:12:17+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47 The Perl programming language 5.42 is available | ProHoster","description":"After a year of development, a new stable branch release of the Perl programming language - 5.42 - has been published.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/news\/dostupen-yazyk-programmirovaniya-perl-5-42","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl 5.42 | ProHoster","og:description":"\u041f\u043e\u0441\u043b\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0440\u0435\u043b\u0438\u0437 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Perl - 5.42.","og:url":"https:\/\/prohoster.info\/en\/blog\/news\/dostupen-yazyk-programmirovaniya-perl-5-42","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2025-07-03T21:12:17+00:00","article:modified_time":"2025-07-03T21:12:17+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"138692","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 13:39:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-23 13:39:19","updated":"2026-01-23 13:39:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/138692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=138692"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/138692\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=138692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=138692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=138692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}