OK, thanks, for the information, however, this, I don't think, is going to work for what I'm asking. Essentually, I wanted to do a 'dummy' call method. Not worrying about packaging etc. The goal is, is to write the 'main' file, then simply add pm files to the directory, and have them called (use), more or less automatically, and then call a specific function that is found in each file, without knowing the pm file name (not knowing the pm file name is the catch to it all). Hence 'like calling out someone's name in a room and letting everyone with that name answer'.

The goal is to have a single function in each pm file that is called, sorta like an init() or something along those lines. The main file wouldn't be edited in order to use a new pm file, the file would be loaded, and the init() (or what ever) would be started and execution would begin. At this point, the only item in the 'global function' is a 'menu' which the main script should call, and choosing the menu, starts the specific function in the specific pm (which only exists once). The actual showing of the 'menu item' is variable based, so if X eq 1 show me else skip.

I'm starting to guess this may not be possible, however, Perl is powerfull enough that I beleive it is. I'd prefer doing this with the standard modules, if external modules are required, for compatibility.

In reply to Re: Same function multiples unknown modules by Delusional
in thread Same function multiples unknown modules by Delusional

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.