Sounds like you need to start with a CGI script.
use CGI;
To be honest the learning curve on Perl is quite steep -- to write decent Perl, that is.
Get hello_world.cgi perl script working on apache first (e.g. apache config, correct HTTP headers etc.)
Then learn to get the CGI variables from your form input.
Then do a bit of file I/O -- check all the file conditions. Perl doesn't have exceptions a la Java, so you have to check each statement:
# this may be wrong, haven't written perl in a while...
open F ">/tmp/myfile.out" or die "Could not open file ... " . $!;
Then work out how to speak to your local mail server. May be easier to allow the file to be downloaded.
Suggest you get a book on Perl.
HTH
use CGI;
To be honest the learning curve on Perl is quite steep -- to write decent Perl, that is.
Get hello_world.cgi perl script working on apache first (e.g. apache config, correct HTTP headers etc.)
Then learn to get the CGI variables from your form input.
Then do a bit of file I/O -- check all the file conditions. Perl doesn't have exceptions a la Java, so you have to check each statement:
# this may be wrong, haven't written perl in a while...
open F ">/tmp/myfile.out" or die "Could not open file ... " . $!;
Then work out how to speak to your local mail server. May be easier to allow the file to be downloaded.
Suggest you get a book on Perl.
HTH
Comment