example - pp \internet\web\cgi-bin\languages py #!/usr/bin/python ""show hello world syntax for input language namenote that it uses rraw strings so that '\nin the table are left intactand cgi escape(on the string so that things like '<<don' confuse browsers--they are translated to valid html codeany language name can arrive at this scriptsince explicit urls "can be typed in web browser or sent by script (urllib request urlopencaveatsthe languages list appears in both the cgi and html files--could import from single file if selection list generated by cgi script too""debugme false inputkey 'languagetrue=test from cmd line input parameter name hellos 'python'rprint('hello world'"'python 'rprint 'hello world"'perl'rprint "hello world\ "''tcl'rputs "hello world''scheme' (display "hello world"(newline''smalltalk' 'hello worldprint "'java'rsystem out println("hello world")'' 'rprintf("hello world\ ")'' ++'rcout <"hello world<endl''basic' print "hello world''fortran'rprint *'hello world"'pascal'rwriteln('hello world')the hello world selector