On Wed, 2008-28-05 at 12:58 -0400, Chris Lewis wrote:
> How do you do this properly?

perldoc -f use
perldoc -f require

        Has semantics similar to the following subroutine:
        
        ...
        
        Note that the file will not be included twice under the same
        specified name.

So your second 'use' statement is being ignored ?  Perhaps you can just
call 'import' to get the required names into the namespace of the second
plugin (i'm sure 'perldoc -f import' and 'perldoc perlmod' have the
whole story but I'm practising one of Larry's virtues here).

I'm guessing that because the plugins are compiled inside an 'eval', the
components that they 'use' are registered as having already been
imported by 'require' but that the namespace is not accessible.  I'm not
sure if this is a bug in perl or not.  Probably not.

-- 
--gh


Reply via email to