Hi.
I am a beginner and need some PERL help. I am testing a function that I cannot change. I need to capture the print statements from this funtion. For example, the following function:
sub_I_can't_change($$$)
{
code
code
print "line 1\n";
print "line 2\n";
return code;
}
How do I capture the outputs that it prints to the screen. I would prefer to capture the data into a variable if possible.
Thanks.
MNJ