A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Perl/perl5/issues/20665 below:

GitHub ยท Where software is built

AUTOLOAD methods on objects in @INC are not called by perl 5.37.7.

I'm not sure what the best behavior here is, but I see two possible solutions. First is to not change anything and just document that AUTOLOAD is ignored for this case. Second is checking for an AUTOLOAD method after checking for INC, INCDIR, and string overloads, and if it exists calling it for INC.

Steps to Reproduce

perl -E'package AutoHook { sub DESTROY {} sub AUTOLOAD { say our $AUTOLOAD; return; } } unshift @INC, bless {}, "AutoHook"; require strict;'

On perl 5.36.0 this produces:

On perl 5.37.7 this produces no output.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4