in reply to x window programming in perl

Take a look at the X11::GUITest module.