in reply to How do you retrieve output from Button widget?

You got that turned around, you need this
$mw -> Button(-text=>"Find Directory", -command =>\&LoadListBox) -> pack(); ... sub LoadListBox { ### CHOOSE DIRECTORY, and if successfull, read filelist my $filepath = $mw->chooseDirectory() or return(); .... }

Replies are listed 'Best First'.
Re^2: How do you retrieve output from Button widget?
by rookie_monk (Novice) on Aug 25, 2010 at 20:41 UTC
    Awesome!!! Thanks... Yea that works much better :)