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


in reply to Follow-up on wimpy GUI search script...

It dies because you call get_cb_values at line 63 without the program's interface actually running yet. How do you want that to work?

I changed that line as follows, and the interface comes up, apparently ready to search:

my $s_button = $mw->Button(-text => 'Search', -command => sub{search(g +et_cb_values())} );
Now the routine isn't called until the button is clicked.