print $fh EXPR; [download]
EXPR can be any expression, including a subroutine call.
In reply to Re: printing sub return values to a file by ikegami in thread printing sub return values to a file by lomSpace