open(FH, "> $log"); function(\*FH); [download]
In reply to what is filehandle's data type by perlfan99