I ran into a problem requiring reusing some functions inside another Perl script. I am writing some test scripts. Testing scenarios are mostly built on top of each other.
Tell Script 1:
Some code for preparing the test. ABC Some code for determining success.
Then Script 2 does:
Some code for preparing the test. ABCDE Some code for determining success.
How can I reuse ABC from Script 1 to Script 2?
Calling Script 1 from Script 2 will not work because of the code to determine the success of the script. What is the best way to do this?
thanks
source share