#### simple HTML Hello World
my$that_famous_string = 'Hello, world!';
# send the obligatory Content-Type
# print the HTML
print'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">'."\n";
Run the script from the command line:
# perl -w helloworld.simple.pl
or in your browser (don't forget to configure DNS and Apache first):
But what about web page design? We can't expect a web designer to be a Perl programmer as well.
And even if you don't care about design, the code already looks tough to maintain, with only one line of output.