Hi Dave,

Thanks for elaborating the point of knowing that both parties are on same page before answering the question. I have looked into my question and it is not clear enough to answer specifically. So Let me explain what exactly i want or what is exactly the question is. Lets suppose we have three files:

1. Start.pl( main entry point of the program from command prompt )

2. Process.pl( This file is required in start.pl using require. This file contains functions and start.pl will invoke its function.)

3. program.pl( This file is required in process.pl and contain some functions too).

Now scenario is we define a function ABC() in process.pl and program.pl both with different functionality. Is there a way we can refer function ABC() of program.pl from within process.pl on run time. If we can do so what will be the affect on global variables of start.pl that are being used in function ABC() of program.pl.

I hope i have clarify my self more than previously. Any suggestions will be of utmost importance, since im stuck on this for a week now.

In reply to Re^2: Does perl allow overriding a function in two different files(.pl) by codewalker82
in thread Does perl allow overriding a function in two different files(.pl) by codewalker82

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.