Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I can't seem to ask this on google and get an answer.
On a terminal I run a while loop showing elements of an array, and ask for user input after each element.
while ( my $contact = pop(@names) ) { print "$contact\n"; print "Is this what you want? (y - n):"; $sel = <STDIN>; last if $sel =~ /y/i; }
How do I do this in a Tk script, using a yes and a no button?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do I show 1 record at a time in Tk
by choroba (Cardinal) on Jan 31, 2018 at 00:45 UTC | |
|
Re: how do I show 1 record at a time in Tk
by AnomalousMonk (Archbishop) on Feb 01, 2018 at 13:28 UTC | |
|
Re: how do I show 1 record at a time in Tk (Ask)
by Anonymous Monk on Feb 02, 2018 at 08:04 UTC |