here is what i got so far ...
#!/usr/bin/perl
use integer;
use strict;
use warnings;
use CGI;
my($q) = CGI -> new();
my($file_name) = "#Enter the file name here with full path here";
print $q -> header('application/x-octet-stream');
#print $file_name;
open(INX, $file_name) ¦¦ die("Can't open($file_name): $!");
binmode(INX);
$/ = undef;
my($data) = <INX>;
close(INX);
binmode(STDOUT);
exit;
}