Monday, April 14, 2008

The wonderful world of server side programming

Server side programming is wonderful as it provides access to lot of resources that client side scripts cant dream of...Database access, files to read and write to, mail programs and other applications on the server...

But Server side scripts are notorious for there slow speed of execution also.So its always a combination of both that triumphs.. Here is a imple perl script to print hello world... and since its a serebvr side script.. after printing "Hello world" it realises that it has entered the world wide web and prints "Hello web" :)

print "Content-type:text/html\n\n";
$first="Hello World";#scalar variable
print $first;
print "<br >";#line break
print $first;

No comments: