What is an easy way to provide a string value to my user and let the user edit it... without him having to retype the whole string if it's not 100% correct.
+7
A:
Though it's difficult to tell for sure what you're asking for, you probably want Term::ReadLine.
Sorpigal
2010-03-03 19:06:37
And if you have GNU Readline available, don't forget to install Term::ReadLine::Gnu (then Term::ReadLine will use it instead).
oylenshpeegul
2010-03-03 20:31:24
If you use Term::ReadLine::Gnu and you distribute your program, you need to distribute your program under the terms of the GPL.
jrockway
2010-03-04 09:54:28
Nonsense. One required to do so when distributing libreadline, but hardly anyone does that. Instead people merely point to Term::ReadLine::Gnu (which is under the usual dual licence) in their distribution meta file, thus may pick something something different.
daxim
2010-03-04 20:28:06
+1
A:
Or if you have Perl 5.10.0 or higher, try Damian Conway's IO::Prompter (the successor to IO::Prompt). I wish I could use it for its timeout feature, but alas I'm stuck on Perl 5.8.8.
molecules
2010-10-14 20:35:35