NAME
Fennec::Util - Misc utilities
CLASS METHODS
- @names = workflow_stack( $workflow )
- $stack = workflow_stack( $workflow )
-
Like a stacktrace, except it returns the workflow and its parents up to the root including filename and line number on which they were defined. In array context it simply returns the list of workflow names up to the parent.
- @sub_names = $class->package_subs( $package )
- @sub_names = $class->package_subs( $package, $regex )
-
Get the list of all subs in a package, if a regex is provided it will be used to filter the list.
- %map = $class->package_sub_map( $package )
- %map = $class->package_sub_map( $package, $regex )
-
Get a map of (sub_name => $coderef) for all subs in a package. If a regex is provided use it to filter the list of subs.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Fennec is free software; Standard perl licence.
Fennec 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.