in reply to Re^2: Creating HTML page
in thread Creating HTML page

But the output i wanted is the page to be in blue color and some text displaying on it BUT not the code of the HTML.
So you viewed the resulting file in a browser and you're seeing the raw HTML rather than a rendered page? Might be an issue with your content-type line. Try:
print "Content-type: text/html \n\n";
Note that the CGI module can handle these headers for you and then you don't need to worry about it:
use CGI qw/:standard/; print header;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.