open(OUT, $flag ? ">>output.txt" : ">>-") or die "..."; [download]
In reply to Re: can you assign file handles? by Fastolfe in thread can you assign file handles? by Anonymous Monk