I will include no code here, just concept.
A html <SELECT> type form, that pulls its options from a predetermined directory 
(possibly recursivley) using the dir
listing functions built into perl. Select your file and hit submit. A script then 
takes that file name, does an open()
on it shoves the data into a scalar or list, does a close() and then opens a new html 
page, passing the variable on to
the new page. The new page contains a <TEXTAREA> with the value attribute set to the 
variable.
print "<TEXTAREA VALUE=\"@stuff_from_file\"> edit the stuff in the text area and hit 
submit, while will rm the old file,
and replace it with the info in the text area
----- Original Message -----
From: "Steveo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 4:01 AM
Subject: perl, web based text editors available?


> I have a small dynamic website I wrote in perl.  All news and stuff is
> entered through a web accessible backend page and the data is written to a
> series of flat ascii text files.  When I make a mistake in entering data,
> or if I want to change most data, I have to shell in and edit it with vi
> (no big deal).  What I'd like to know is if there are simple web based text
> file editors (written in perl) out there that I can integrate into my
> website so I can edit these raw files over the web instead.
>
> I had been thinking of writing a cgi script that would allow you to pick
> any one of a predetermined set of data files to pull into a text area box
> that could be edited and then returned as a form to over-write the old
> version.  It seems simple enough to read a text file into a webpage, but
> I'm not sure that the I know how to return the edited file to the webserver
> in the exact same format as it was retrieved.
>
> Steveo
> Steveo (aka Haiku)
> [EMAIL PROTECTED]
> www.linuxhaiku.com
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to