in reply to Clearing entry boxes in a GUI?

Hi,
you should mention what kind of GUI you got. I assume it is either Tk or Gtk. If it's Tk I can't be of any help to you.

If it's Gtk you could just delete the text of the entry-widgets in the function which is connected to the save button.

Say you got:

# ... lots of stuff $entry = new Gtk::Entry(8); $button = new Gtk::Button("Save"); # pass the entry-varible to the sub, if it ain't global $button->signal_connect( "clicked", \&savethings, $entry); # ... lots of more stuff :-)
The the function savethings could be something like
sub savethings { # here we receive the entry-widget (and the save-button, too) my ($savebutton,$entry) = @_; # delete text in entry $entry->set_text(""); # save things # ... }

Hope this helps.

Regards... Stefan