Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Term::UI on Win32

by Marel (Initiate)
on Mar 16, 2012 at 22:21 UTC ( [id://960082]=note: print w/replies, xml ) Need Help??


in reply to Term::UI on Win32

Hi Andreas,

If you have ActiveState Perl, why not try opening the HTML help, C:\Perl\html\index.html. if you followed the standard installation procedure. Now select in the left-hand pane the help for the Term::ReadLine module.

If I look at this page I see that the Term::ReadLine module that comes with ActiveState Perl does not have a get_reply function...

Okay, Activestate specific? No, just check this link.

Next I asked mr. Google for "perl term get_reply" and found a post on stackoverflow and there I saw also Term:UI. So:

use warnings; use Term::UI; use Term::ReadLine; my $term = Term::ReadLine->new( 'brand' ); my @arrayOfChoices = ( qw( Hans Jan Jannie Piet Klaas Truus ) ); my $reply = $term->get_reply( prompt => 'select a name', choices => \@arrayOfChoices, ); print $reply;

Replies are listed 'Best First'.
Re^2: Term::UI on Win32
by derimac (Novice) on Mar 17, 2012 at 07:01 UTC

    Many thanks for your reply,
    I have checked the ActiveState HTML help and found that Term::UI supports get_reply on ActiveState. Term::UI took the @ISA array from Term::ReadLine to extend the functions. My assumption is that it should work on Win32 without this nasty message.
    As well I have seen this post on stackoverflow but this does not give an explanation of the message I got back.
    Thanks Andreas

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://960082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found