in reply to Global symbol $AUTOLOAD requires explicit package name at

$AUTOLOAD is a package global, so you can make the error go away by referring to it as e.g. $mypackage::AUTOLOAD.