Tk::HistEntry implements an entry widget with history. You may use the up and down keys to select older entries (or use the associated listbox). WWW: https://metacpan.org/release/Tk-HistEntry