in reply to Scalar string to web page
Update:
use HTML::Entities; print encode_entities '<a href="#">linky</a>'; __END__ Output: <a href="#">linky</a> [download]