Since the text file was a tabulated text file, able to (and preferred to) be opened in MS Excel, I set the content type to:
application/vnd.ms-excel And she runs like a dream! =) # example $ENV{PATH_INFO} = # '/cgi-bin/download.cgi/cgi-bin/bill/questionnairedata1.txt' $file = $ENV{PATH_INFO}; @pathitems = split("/",$file); #gets rid of preceding dirs. shift(@pathitems); shift(@pathitems); shift(@pathitems); $file = join("/",@pathitems); open(OUT,"$file"); print "Content-Type: application/vnd.ms-excel\n\n"; while(<OUT>){ print $_; } close(OUT); > From: [EMAIL PROTECTED] (Rafal Pocztarski) > Newsgroups: perl.beginners.cgi > Date: Mon, 29 Oct 2001 13:58:47 +0100 > To: [EMAIL PROTECTED] > Subject: Re: Auto-initialising a client-side download > > Shannon Murdoch wrote: >> >> Oh, I only just found there was more beyond the first quoted block of text! >> I'll look in to it now. > > That's because most of people here can't quote at all. There is always > more text below any quoted text im my messages. Why would I quote > anything if I did't want to comment or answer it? > > - RaFaL Pocztarski, [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]