Brutha has asked for the wisdom of the Perl Monks concerning the following question:
When I found the module IO::Prompter I just went wow on the features. Great work.
As already others said and open bugs tell, this is not working completely under Windows, but still is usefull. What seems to work for me with version 0.004010 is:
So this is quite a lot to make it usefull, even if I just did only quick testing.
What did not work are some editing features (to be expected under windows), but more disappointing were some constraints failures. The -guarantee works until you press return and always get "invalid input":
my $animal = prompt -guarantee=>['cat','dog','cow'];Also the '-must' constraints always seem to fail, e.g.:
my $file = prompt "Select file: ", -must => {'File must exist' => sub { -e } }, -complete => 'filenames';
after completion always gives "File must exist". So I tried debugging, but failed as the keyboard is turned off on verifying constraints.
Anybody has some hints how I could continue?
Did anybody has some success with possible other combinations?
It would be great to have the cats/dogs example running.
Oh, I use x86 ActivePerl 5.14 on Windows7 64-bit with use 5.014; and Term::ReadKey installed
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Prompter on Windows
by Corion (Patriarch) on Nov 05, 2013 at 08:56 UTC | |
by Brutha (Friar) on Nov 05, 2013 at 09:14 UTC |