in reply to Re: downloading file with CGI
in thread downloading file with CGI

Hi,

I got it. It's working fine now. Thanks almut for the suggestion, it worked, but in this case I need to do double task ...

.

1. pulled data into the file and save it. 2. again read the data and print it to STDOUT .. for the download purpose.

Instead if I go for anchor tag

print $cgi->a({-href=>"filename to download","some text"});
I directly download the file upon clicking the link

Thanks again to you all for your help