With that as part of the debug message, it should be obvious that either your code does not load your Material::Variable::Pressure module or said module does not have this method defined. Stepping through in perldb might be a little late to catch the error as this is more of a BEGIN-time bug if the module isn't being loaded.