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)


In reply to IO::Prompter on Windows by Brutha

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.