http://www.perlmonks.org?node_id=819014

bobuillean has asked for the wisdom of the Perl Monks concerning the following question:

Folks,

I have a Padre plugin under construction that needs to get some user input. Is it as easy as:
use Wx::Perl::Dialog::Simple; my $response = entry( 'title' => "What's yer poison");

?

If so why wouldn't this work?

sub menu_plugins_simple { my ($self) = @_; return $self->plugin_name() => [ 'Add' => sub { my $name = entry(title => "Cad an sceal?"); }, ]; }

The menu comes up OK in the Plugins menu but the 'Add' option does nothing.

Thanks in advance for any tips.