in reply to Re: Does perl allow overriding a function in two different files(.pl)
in thread Does perl allow overriding a function in two different files(.pl)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Does perl allow overriding a function in two different files(.pl)
by davido (Cardinal) on Jul 15, 2011 at 21:57 UTC |