in reply to Re^2: add css to html code
in thread add css to html code

Well, unless you tell us what "Perl errors" you got, we can only give you very general advice.

For integrating CSS into HTML, you can look at the source code of basically any website to find how it does that.

But again, without you telling us where exactly you encountered problems and what those problems were, there is only that much we can do to help you.