in reply to html form to edit perl file

I do hope your title is merely "phrased badly" because, while you can edit an html file with perl... you can't edit perl with html.

OTOH, f you mean to modify your script each time it parses data from a form with an inbuilt routine that recognizes the form data as its cue to re-write itself... well, as AM said, self-modifying executables are rarely a "really good idea."

And, re "I intentionally want to stay away from text editors" -- how, then, do you propose to (or "did you") write the script in the first place?