#!/usr/bin/ruby require 'cgi'cgi = CGI.new text = cgi['text'] puts cgi.headerputs "<html><body>#{text.reverse}</body></html>"
来源: http://www.phpxs.com/code/1007064/