$EntryQuery->idletasks;#$EntryQuery is the Tk widget where the user is typing $SearchField->bind("", sub { print "Searching for $QueryInput\n";#$QueryInput is a variable linked with the Entry widget my $ResultsFinal=QueryDatabase($QueryInput); DeleteAllRowsInTable(); PrintingResultsInTable($ResultsFinal); }); #### Searching for p Searching for pa Searching for par Searching for paragr Searching for paragra Searching for paragrap Searching for paragraph Searching for para # this should have been searched as 4th iteration, or skipped as no more interesting (since the user has typed another letcharacterter) Searching for parag # this should have been searched as 5th iteration, or skipped as no more interesting (since the user has typed another character)