http://www.perlmonks.org?node_id=1020878


in reply to Re: How can one get the result to a text file when print join is used?
in thread How can one get the result to a text file when print join is used?

Or add a "select FH;" after the "open (FH...")

open(FH, ">myPer .txt") or die "Cannot open myPer .txt"; select FH;