Thanks for the reply.
I tried using the following but it looks like the command doesnt get executed from the CGI :
print "content-type: text/html \n\n";
# SET UP THE TABLE
print "<table border='1'>";
print "<th>Test</th><th>Value</th><th>Expected Value</th><th>Result</t
#print "VALUE IS $b\n\n";
When I run this from the command prompt, it the gives the correct output.
Any idea where I am going wrong ?