in reply to clearing a page

Hi ! It seems to be more a javascript than a perl question. You can generate both table at server side in perl and make the display switch between'em in javascript at client side.
Nice photos of naked perl sources here !