in reply to looking for better solution
This doesn't directly address your question, but will make your life in general a ton easier... Stop hard coding HTML into your applications and use a templating system like Template-Toolkit or HTML::Template
Frank Wiles <frank@revsys.com>
www.revsys.com
|
|---|