|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Flat File Editing Questionby Stamp_Guy (Monk) |
| on May 23, 2001 at 23:42 UTC ( [id://82773]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Stamp_Guy has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I've got a flat file database that I need to be able to edit. Right now, I have a system that works as follows:
Each line in the database is numbered. A cgi spits out a HTML page with the entire contents of the database. Beside each line is a link containing a parameter to be passed to the cgi. That parameter is the line number of the database. When passed to the cgi, the cgi works something like this (example code only, not actual code from site):
It seems to me that this is a bit error/bug prone. Is there a better way to do this? There is also the remote possibility that I may get multiple users on this system in which I am sure this system would fail. Could anyone tell me a more secure way to do this? I'm a self-taught programmer. I have no formal training what-so-ever. Any suggestions as to how I could improve both my system and my code would be greatly appreciated! Thanks!
Stamp_Guy
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||