You can use the CGI module for doing the file upload (if I understood correctly that you need to upload a file), it can also get the variables from the form, and if you don't want to code the HTML manually you can also use CGI's methods or functions to create the page content and the form (because you can use it as a functional module or as an OOP module).
In order to create unique file names there are more ways, depending exactly what you need to do. If you want to create temporary file names you can use File::Temp, or you can simply use Digest::SHA1 or Digest::MD5.
Octavian----- Original Message ----- From: "Sina Bahram" <sbahram@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, April 04, 2009 12:17 AM Subject: Perl CGI
Hi all, I have a Perl script that I've written, which now needs to be accessed via the web. It requires a text string and a path to a file as it's two arguments. It spits out two output files. How can I webify this in the simplest way possible?I'd pretty much like a form which takes the input string and input file, andthen the script can spit out an html page with two links for the user to download the two output files. Are there some libraries that make this dirt simple to do in Perl? I can obviously code up all the necessary html, but some issues aregenerating unique filenames, handling the input data such as the file beinguploaded correctly, and so on. Thanks Take care, Sina __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind