I think we have a misunderstanding. The text that the user types in the widget, is a file on the users HHD, I want that file that the user types in to be looked for, so that it can return to the dos window the information being searched for.
sub check {
my $check = $mw->DialogBox(...