in reply to Is it possible to write the results of a subroutine for data formatting to a text file?
GrandFather's answer is good.
One thing I'll add though, is that there are cases where the subroutine you're calling and want to capture the output of is outside your control, and cannot be changed. In that case, Capture::Tiny is handy.
|
|---|