Ruby 编写 CGI 脚本

#!/usr/bin/ruby 
print "Content-type: text/html\r\n\r\n" 
print "<html><body>Hello World! It's #{Time.now}</body></html>\r\n" 

编程技巧