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
In reply to Trapping a Function Call in Non-OO Perl by kakaze
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |