lestrrat -- Thanks very much! The export_to_level(2) works! for modules that are inheriting Exporter.pm. We still have however, many old .pl libraries, some of which are packages, others which are just files of subroutines. Pretty much in all cases, those that are actually packages, don't require Exporter; and the .pl subroutine files certainly don't.

Now in normal mode, the symbols for the subroutines in the subroutine libfiles would remain in main, since no package name caused Perl to change namespaces. But in my PmLoader, without an export functionality, these remain in PmLoader.

So in both of these cases, I guess I should concoct a local export subroutine (based on the relevant code in Exporter.pm) to call, since export_to_level() can't be used. Or maybe I should play with package name switching... Again, thanks alot for your help!

-cadphile.


In reply to Re: Re: Re: use/require $MODULE (a variable) by cadphile
in thread use/require $MODULE (a variable) by cadphile

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.