You want
open TMP, ">" . $tmp or die "Couldn't open $tmp: $!"; [download]
In reply to RE: RE: Re: Remote Pipe by btrott in thread Remote Pipe by Robert