Name

qbit::Packages - Functions to manipulate data in packages.

Functions

package_sym_table

Arguments:

  • $package - string, package name.

Return value: hash ref, all package's symbols.

package_stash

Arguments:

  • $package - string, package name.

Return value: hash ref, package stash.

package_merge_isa_data

Arguments:

  • $package - string, package name;

  • $res - scalar, result's stash;

  • $func - code, function to merge. Arguments:

    • $package - string, package name;

    • $res - scalar, result's stash;

  • $baseclass - string, upper level package name.

Recursive merge data into $res from all levels packages hierarchy.

require_class

Arguments:

  • $class - string, class name.

Convert class name to .pm file path and require it.

Return value: return value of CORE::require if all is Ok or throw Exception if cannot load .pm file.

dynamic_loading

Arguments:

  • $package_prefix - string.

Dynamic loading all packages from directory $package_prefix.

Example:

  dynamic_loading('QBit::Application::Model::DBManager::Filter');