in reply to How to display text in IE?

Use a server side (CGI or mod_perl) script, and have it output the appropriate headers and html, as others have already pointed out.

Alternatively, if you don't want to use a webserver and it is just used locally, you can write the html to a temporary file.

my $tempfile = 'generate a nice filename based on system settings'; open my $fh, '>', $tempfile or die "Can't open '$tempfile' for output: + $!"; print $fh '<html><head><title>Test page</title></head><body><b>Hello, +World!</b></body></html>'; close $fh; system( start => $tempfile ); unlink $tempfile or die "Cannot delete '$tempfile': $!";

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.