'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 module languages common contains all the data that needs to agree between pagesthe field name as well as the syntax dictionary the hellos syntax dictionary isn' quite html codebut its keys list can be used to generate html for the selection list on the main page dynamically notice that this module is stored in the same cgi-bin directory as the cgi scripts that will use itthis makes import search paths simple--the module will be found in the script' current working directorywithout path configuration in generalexternal references in cgi scripts are resolved as followsmodule imports will be relative to the cgi script' current working directory (cgibin)plus any custom path setting in place when the script runs when using minimal urlsreferenced pages and scripts in links and form actions within generated html are relative to the prior page' location as usual for cgi scriptsuch minimal urls are relative to the location of the generating script itself filenames referenced in query parameters and passed into scripts are normally relative to the directory containing the cgi script (cgi-binhoweveron some platforms and servers they may be relative to the web server' directory instead for our local web serverthe latter case applies to prove some of these points to yourselfsee and run the cgi script in the examples package identified by url filenames are relative to the parent directory where the web server is running (newly created files appear therehere is this script' codeif you need to gauge how paths are mapped for your server and platformthis server-specific treatment of relative filenames may not be idea for portabilitybut this is just one of many details that can vary per serverimport languages common open('test-context-output txt'' ' write(languages common inputkeyf close(print('context-typetext/html\ \ndone \ ' server-side scripting from my dir in server dir