How to close windows by program ?

Hello, I'm verry new in Gtk-Perl programming (about 2 days) and I have a stupid question... I need to close a window and than show another window. My app. shows both windows and closes them at the exit.

Does exist something like

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]