I have a CGI Script that processes some input and generates a file based on the input and a template stored on the server.
I need to be able to edit the templates from a GUI instead of the CLI. I would like to do something similar to the trixbox GUI Config File Editor, except in Perl instead of PHP.
I am using a form with a text field (something like the text box I am typing in now) to do the editing; I can save text entered in the text box to a file, but how do I load text into the text field?
Perhaps I am approaching this the wrong way, I'd like to avoid reinventing the wheel, maybe someone can suggest a better solution?
Thanks for the assist.