in reply to Re^2: Creating "parasitic" exports
in thread Creating "parasitic" exports
every time the export list changes in Foo::Core, it has to be updated in Foo::Core::Specialized.
Why? Why not just initialise F::C::S's EXPORT* vars from F::C's?
package Foo::Core::Specialised; use Foo::Core ':all'; our @EXPORT = @Foo::Core:@EXPORT; our @EXPORT_OK = @Foo::Core::EXPORT_OK; our %EXPORT_TAGS = %Foo::Core::EXPORT_TAGS; ## Add, subtract or overwrite as required.
That way F::C::S can export everything F::C can unless you explicitly remove it--self maintaining--plus anything you add or overwrite.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating "parasitic" exports
by sirrobert (Acolyte) on Nov 18, 2009 at 18:05 UTC | |
by BrowserUk (Patriarch) on Nov 18, 2009 at 19:57 UTC |