Here's another way, perhaps simpler, depending.
I use this to ask for input via a GUI widget, useful when I'm working outside the console on Win32.
use strict; use warnings; use Tk; my $enteredvalue; my $window = MainWindow->new(-title => 'myTitle'); my $entry = $window->Entry(-textvariable => \$enteredvalue)->pack; $entry->bind('<Return>', \&go ); $entry->focus; MainLoop; ### sub go { # Do your thing... }
In reply to Re: Tk input box
by EdwardG
in thread Tk input box
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |