ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
My apache server is setup to handle .dat files as application files that need to be downloaded. My perl script will send the data file, but the file is named the same as my perl script. I'd like to be able to define the name of the file that gets downloaded. Can someone tell me how I can pick the name of the output file that gets sent to the browser?#!/usr/bin/perl print <<"APPDATA"; Content-type: application/dat #...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output a file from perl online
by holli (Abbot) on Aug 29, 2005 at 09:29 UTC | |
by ecuguru (Monk) on Aug 31, 2005 at 06:18 UTC | |
|
Re: output a file from perl online
by Roger (Parson) on Aug 29, 2005 at 12:36 UTC |