Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Open some text in $EDITOR, allow user to edit it, and then use changed data

by driador (Novice)
on Sep 27, 2018 at 00:44 UTC ( #1223120=perlquestion: print w/replies, xml ) Need Help??

driador has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks! Question for everyone

I would like to have a basic form presented to users who run a command. I would prefer that the form be stored with the script easily, so putting it in the __DATA__ section makes the most sense to me. That said, is there a way to open the editor defined for the uid (or say, a default) with said form, allowing the user to edit it, and then run some method on the now edited form?

TIA
  • Comment on Open some text in $EDITOR, allow user to edit it, and then use changed data

Replies are listed 'Best First'.
Re: Open some text in $EDITOR, allow user to edit it, and then use changed data
by Corion (Pope) on Sep 27, 2018 at 06:01 UTC
Re: Open some text in $EDITOR, allow user to edit it, and then use changed data
by Anonymous Monk on Sep 27, 2018 at 01:02 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1223120]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2019-12-16 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?