The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Exodist::Util::Package - Exodist's collection of package utility functions

DEFAULT EXPORTS

inject_sub( $package, $name, $code, $redefine )

Inject $code as the function/method named $name in package $package. $redefine should be set to true if you are intentionally redefining an existing sub.

OPTIONAL EXPORTS

@list = package_subs( $package )
@list = package_subs( $package, qr/match/ )

Get a list of all subs in a package. The second argument is an optional regex that will be used to filter the list.

%name_to_sub_map = package_sub_map( $package )
%name_to_sub_map = package_sub_map( $package, qr/match/ )

Get a map of name => coderef for all subs in a package. Second orgumunt is an optional regexp filter.

AUTHORS

Chad Granum exodist7@gmail.com

COPYRIGHT

Copyright (C) 2010 Chad Granum

Exodist-Util is free software; Standard perl licence.

Exodist-Util is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 80:

'=item' outside of any '=over'

Around line 94:

You forgot a '=back' before '=head1'