You fetch the list of subs the same way the list of subs is already being fetched.
package Limit::Traits; use POSIX ':limits_h'; use Class::Traits ...; # Fetching now will give you "USHRT_MAX" etc. # but not "foo" nor "bar" sub foo { ... } sub bar { ... }
Later, when Limit::Traits is used, you'll want to export a bunch of subroutines so you fetch the list of all code references in that package again but don't export the ones that were already there when you fetched that same list the first time (in Class::Traits::import).
- tye
In reply to Re^3: Detecting an imported function (exclude time)
by tye
in thread Detecting an imported function
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |