Perl Interactive Invitation

Which is an easy way to provide a string value for my user and allow the user to edit it ... without having to repeat the entire string if it does not match 100%.

+4
source share
4 answers

Although it’s hard for you to say exactly what you are asking for, you probably want Term :: ReadLine.

+8
source

Or for something higher level, perhaps IO :: Prompt

+3
source

Or, if you have Perl 5.10.0 or higher, try Damian Conway IO :: Prompter (successor to IO :: Prompt). I'm sorry that I cannot use it for my timeout function, but, alas, I'm stuck on Perl 5.8.8.

+1
source

Source: https://habr.com/ru/post/1303031/


All Articles