How can I catch accesses to undefined variables, functions, or methods?
The AUTOLOAD method, discussed in Autoloading in the perlsub manpage and AUTOLOAD: Proxy Methods in the perltoot manpage, lets you capture calls to undefined functions and methods. When it comes to undefined variables that would trigger a warning under use warnings, you can promote the warning to an error.