http://qs321.pair.com?node_id=588470


in reply to How to write better code?

Assuming your string comes from a CGI query, following code is the shortest and works best for your use. It will display nicely in HTML format.
use CGI; print CGI->new->Dump;
I would suggest that use read 'Perl Best Practices' book.
--Artist