kakaze has asked for the wisdom of the Perl Monks concerning the following question:
This may be a mad idea but I'm wondering if there is any to trap a function called from a require'd file?
There is a require file I want to use (in order not to have to duplicate most of the code in another file) but on error, the main function called in the file calls another exit function. I want to handle the error condition myself while bypassing the called exit function.
I know I can do method overloading in OOP but we are not using OOP :(
Perhaps it's not possible but I'd like to hear from my fellow monks wisdom!
Thanks in advance,
Kakaze
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trapping a Function Call in Non-OO Perl
by rinceWind (Monsignor) on Feb 15, 2002 at 10:39 UTC | |
|
Re: Trapping a Function Call in Non-OO Perl
by talexb (Chancellor) on Feb 15, 2002 at 12:02 UTC | |
by IlyaM (Parson) on Feb 15, 2002 at 12:07 UTC | |
|
Re: Trapping a Function Call in Non-OO Perl
by dash2 (Hermit) on Feb 15, 2002 at 15:27 UTC | |
by dragonchild (Archbishop) on Feb 15, 2002 at 15:50 UTC | |
by kakaze (Sexton) on Feb 15, 2002 at 16:40 UTC |