How do i change a function of perl in runtime?
I need it for testing issues.
I have a class A with function x.
This function x calls function y.
I want to check the behavior when y crashes.
So i want to change y with the function sub {die "aaa"}, make the test and then change it back.
In reply to change perl function in runtime by david2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |