Skip to main content


Generic Module to inherit from

Changes for v0.31.0 - 2023-07-30T08:12:20Z

  • Added the support method _on_error as a callback triggered by call to error()
  • Added the option 'wantlist' to method _set_get_array_as_object() in Module::Generic
  • Updated method _set_get_scalar_as_object in Module::Generic
  • Improved the method unload_perl() in Module::Generic::File to allow for the use of a callback to format the perl data.
  • Improved the method _set_get_version to allow to pass a definition hash reference and specify a class to handle the version number.
  • Improved the method _set_get_class
  • Created the class _set_get_class_array_object
  • Improved method as_hash in Module::Generic
  • Improved method __create_class in Module::Generic
  • Improved method init() in Module::Generic to allow hash or hash reference to be provided containing keys with dashes inside, such as "some-thing" and be checked against both "some-thing" and "some_thing"
  • Improved AUTOLOAD in Module::Generic to check for object property also using the underscore converted to dash, such as some_thing -> some-thing
  • Improved the methods load() and load_utf8() in Module::Generic::File to return a scalar object in object context.