in reply to HTML:row collapse
As an aside, you could consider using a templating system to remove your perl code from your HTML/design. See responses to your previous questions which give examples of such modules/frameworks.