```{index} single: meta::glob (pragma) ``` # meta::glob ```{pperl-module-badges} meta::glob ``` ## Functions ### Globs #### `get` `meta::glob->get($name)`, `->try_get($name)`, `->get_or_add($name)`: the glob of the fully qualified `$name`; if there is none, `get` croaks, `try_get` returns undef and `get_or_add` creates it. Also available as `meta::glob::try_get`, `meta::glob::get_or_add`. #### `basename` `$metaglob->basename`: the glob's name without its package. #### `can_scalar` `$metaglob->get_scalar`, `->try_get_scalar`: the glob's scalar; if it has none, `get_scalar` croaks and `try_get_scalar` returns undef. `can_scalar` is a deprecated spelling of `try_get_scalar`. Also available as `meta::glob::get_scalar`, `meta::glob::try_get_scalar`. #### `can_array` `$metaglob->get_array`, `->try_get_array`: the glob's array, as for `get_scalar`. `can_array` is deprecated. Also available as `meta::glob::get_array`, `meta::glob::try_get_array`. #### `can_hash` `$metaglob->get_hash`, `->try_get_hash`: the glob's hash, as for `get_scalar`. `can_hash` is deprecated. Also available as `meta::glob::get_hash`, `meta::glob::try_get_hash`. #### `can_code` `$metaglob->get_code`, `->try_get_code`: the glob's sub, as for `get_scalar`. `can_code` is deprecated. Also available as `meta::glob::get_code`, `meta::glob::try_get_code`.