open (ARCHIVE1, ">>/directory/myfile") || die "File Not Found"; [download]
In reply to Doing more than printing "File Not Found" with a die command by Anonymous Monk