#!/usr/bin/perl
#print "Content-type: text/html\n\n";
my $filepath='/upload/testing.pm';
print "Content-Type: text/html\n\n";
open("DOWNLOADFILE", "<".$filePath);
while($fileContents = ) {
print $fileContents;
}
print "Content-Type: text\n";
print "Content-Disposition: attachement; filename='testing.pm'\n";
print "Content-Description: File to download\n\n";
close DOWNLOADFILE;