NAME
PDB::CGIURLAdapt() - Creates an adaptive URL reference to a CGI script based on the URL of the calling script.
SYNOPSIS
$url = PDB::CGIURLAdapt($scriptName)
DESCRIPTION
PDB::CGIURLAdapt takes as input the name of a cgi script (without the .cgi extension) and generates a URL that properly references that script. If the calling script was referenced with a .cgi extension, it adds the calling scripts' URL directory path and a .cgi extension to the script name. Otherwise, it returns a reference to the program from the server's URL root.