OK, if u use the print statement like that then if you use quotes you must put a backslash before it so the compiler doesnt think its reached the end of the string, example.
print "
Test Link ";
The above line will cause errors unless you do it like this.
print "
Test Link ";
The way I would recommend do it it just before the print statment use a variable and then print it.
eg
$HTMLText = qq(this can be
HTML
and I can use quotes " " without having to put backslashes infront of them);
print "$HTMLText";
Thats how I would do it, hope this helps you out.