Thanks radiant.matrix,
Thats working with the exception of the error message (forgot the package command in one of the files thus it caused problems (all files are part of main as they were orginally in the main file and only stripped out and put into smaller ones to make reading and editing easier))....
. Specifically, I'd like the eval (prefer eval over the dispatch in this situation), to call nopageerror (which is in the main package). I've tried adding else commands to the if, however, as my luck this week has been, its kicking out with an error (probibily because it not valid, didn't find a ref to useing if-then-else in eval's, but thought I'd try anyway). The reason for calling nopageerror, is to display a useful information in the browser as well as generate special logs that arn't quite as cryptic as the Perl error messages and Apache logs...

What would I have to do to be able to eval the var, if the var is a function, execute it, if not, call the sub routine to issue the error message about the missing function. This is probibily so simple that I'm over looking it...

In reply to Re^4: Loading all files in a dir with use via for loop by Delusional
in thread Loading all files in a dir with use via for loop 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.