in reply to do until sysopen()
use File::Temp qw(tempfile); my ($fh, $filename) = tempfile( DIR => $tmpdir ); [download]
-Blake