It can't be done from within, since the method call is out of the scope of that package. It's like saying
in reply to Re: using AUTOLOAD to access read-only data structures
in thread using AUTOLOAD to access read-only data structures
perl -le '$foo = "Blorf"; $foo->quux'
Can't locate object method "quux" via package "Blorf" (perhaps you for
+got to load "Blorf"?) at -e line 1.