in reply to Re: How to tell if a sub has been exported?
in thread How to tell if a sub has been exported?

How can I tell from another routine in the module (such as INIT) that the subroutine has been imported?

  • Comment on Re: Re: How to tell if a sub has been exported?

Replies are listed 'Best First'.
Re: Re: Re: How to tell if a sub has been exported?
by miyagawa (Chaplain) on Oct 06, 2001 at 12:04 UTC
    Sorry for that this is not a direct answer, but you've wrote
    The real reason is that foo requires a bit of initialization, and I don't want to do this unless necessary.
    I think this is completely irrelevant to import/export. Making closure will be enough, and using Autoloader would be another option.

    --
    Tatsuhiko Miyagawa
    miyagawa@cpan.org