gl2103 has asked for the wisdom of the Perl Monks concerning the following question:
-------------------------------------------------#dynamically determine $outf="C:/folder1/test.xls; #dynamically determine $filenm="test.xls"; print "Content-Type: application/octet-stream\n"; print "Content-Disposition:attachment;filename=$filenm","\n\n"; print "Content-Length: $no_bytes","\n\n"; open(FILE,"<$outf"); while(<FILE>){print;} close (FILE);
Updated Steve_p - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with downloading
by Fletch (Bishop) on Apr 18, 2005 at 17:54 UTC | |
by ikegami (Patriarch) on Apr 18, 2005 at 17:58 UTC | |
by ambs (Pilgrim) on Apr 18, 2005 at 18:04 UTC | |
by cog (Parson) on Apr 18, 2005 at 18:05 UTC | |
by gl2103 (Novice) on Apr 18, 2005 at 18:01 UTC | |
by gl2103 (Novice) on Apr 18, 2005 at 18:10 UTC | |
by gl2103 (Novice) on Apr 18, 2005 at 18:23 UTC | |
|
Re: Need help with downloading
by eibwen (Friar) on Apr 18, 2005 at 19:10 UTC | |
|
Re: Need help with downloading
by ambs (Pilgrim) on Apr 18, 2005 at 17:44 UTC | |
by gl2103 (Novice) on Apr 18, 2005 at 17:49 UTC |