tokuhirom's Blog

Module::Functions - Get function list from package

I shipped Module::Functions, that aggregates list of public functions from package.

I released Exporter::Auto in 2011, but some people thinks this module is too clever :P

You can do same function with less clever way with Module::Functions.

Here is example code:

package My::Class;
use parent qw/Exporter/;
use Module::Functions;
our @EXPORT = get_public_functions();

Yes. Code using Exporter::Auto is shorter(ところで、shorter という文字列をみるたびに春風亭昇太師匠をおもいだすのは私だけでしょうか). If you love Exporter::Auto style code, continue using.

You can use your favorite way, because TMTOWTDI is a perl motto!