Hi all, I don't know very well the terminology involved in my question, so, sorry in advance for anything.
I used the parse_form routine from FormMail to get all the data passed from a form to the array $Form, and this array has something I think is called hash. That is, if a have a field called "fieldname" on my form I can get its value using $Form{fieldname}. I write the contents of this array to a file using the following code: ############ open (FHD, "+>>$outname"); print FHD "\n\n"; for $element (@Form{keys %Form}) { print FHD "$element\n"; } print FHD "\n[END]\n\n\n"; close FHD; ############ As the experts can see clearly, I only write to the file the values of the form, and not the hashing keys. Question #1: How can I get the value of the key, so I can have in output file something like "key = value" instead of only "value", as the code above does? Question #2: I read on an old post to a newsgroup that one doesn't need to lock a file when appending, because the data to be written will be placed in a buffer until it's full. Is it true? Or do you recommend to lock the file? Thanks, Rafael -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]