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
## 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;