• Welcome to Computer Association of SIUE - Forums.
 

Perl Problems....

Started by Guest, 2004-09-08T00:20:01-05:00 (Wednesday)

Previous topic - Next topic

Guest

High school student still, took classes this summer at SIUE and making a webpage the involves Cgi scripting... bought several books, Perl for Dummies..... but i ran into a learning block..... if someome can help message me back...

thanks...

William Grim

Error messages and problem descriptions garner much more response.
William Grim
IT Associate, Morgan Stanley

Guest

Alright sorry, alright have simple form script, using get, the form data is then transfered to the script and save to a file in the format that i want. alright that is working fine.... My problem is that i need to have the script save to the approprite file that is the first entry of the simple form..... and i don't know how to get it to work... have any questions or would like me to post the script please respond back....

Thanks..
Rog

Guest

try something like:

open(FH, '>', param("filename"));

where "filename" is the name of the input field that has the desired file name.  And then write the data to that file instead of hard coding it or whatever you are doing.