|P is for Practical|
pre-texted <STDIN>by ShainEdge (Novice)
|on Apr 04, 2020 at 10:18 UTC||Need Help??|
ShainEdge has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to make a simple perl based notebook (for my own learning experience). Other then Adding new notes, and Deleting them, I would like to edit current notes.
Is there a way to insert a note text into the <STDIN> block, as if the person had typed it in, so that it can be edited before (entering) the new edit of the note?
So, for example:
The note "grocery list" already has "milk, butter, bread and eggs" stored.
Choosing the "E)dit note" and selecting the "grocery list" would print out the stored text in an editable format so that the user can make a change such as move to add ", peanut butter" after "bread" then enter the new text as the edited note.
It might be easier in Perl/Tk, but I was wondering if there is a solution in a command line version.