note
Anonymous Monk
<p>
Below is the code to reproduce the error.<br/><br/>
<code>
package Homepage;
use strict;
use warnings;
use diagnostics;
require "MRlib.pl"; #this script has logic for AUTOLOAD written, where it checks for main package and method name and call for require<br/>
## Upon using below require it works, otherwise, it throws Use of inherited AUTOLOAD for non-method FP::Introduction::Introduce() is no longer allowed at test_autoload.pl line 17. error
## require "C:\\Users\\xxx\\Documents\\Application\\Perl_upgrade\\test_autoload\\SUBS\\App\\Introduction.pl";
BEGIN {
*AUTOLOAD = \&FP::AUTOLOAD;
}
print "I started the program\n";
#Below Introduce sub is written in "C:\\Users\\xxx\\Documents\\Application\\Perl_upgrade\\test_autoload\\SUBS\\App\\Introduction.pl" script
&FP::Introduction::Introduce;
print "I got to the end of the program\n";
1;
</code><br/><br/>
I hope it makes sense now !<br/>
Thank you
</p>
11137026
11137074
3