my $boundary_string = "\n" . "--End" . "\n"; my $end_of_data = "\n" . "--End--" . "\n"; my @file_list = ("wlmlm401.exe"); print <; close (FILE); } else { print "Cannot open file $file!"} } #### $/ = undef; @ARGV = ("/home/goldcal/www/files/wlmlm401.exe"); print multipart_init(); while(<>) { print multipart_start("application/octet-stream"); print $_; print multipart_end(); } print multiplart_final(); ## UPDATE - THis part should not have been here, it is finger trouble ;) #print $cgi->header( -type => "application/octet-stream", # -expires => "-1d", # -attachment => "wlmlm401.exe", # );