in reply to Re^2: Detecting an imported function (exclude time)
in thread Detecting an imported function
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Detecting an imported function (exclude time)
by Ovid (Cardinal) on Nov 17, 2005 at 17:40 UTC | |
by tye (Sage) on Nov 17, 2005 at 18:06 UTC |