Hello, World!

I'm an amateur programmer trying to convert some of my old BASIC programs to run in a browser so people don't have to download and install software. I'm having a problem with my current project because CGI.pm is generating some funny code when I try to evoke a scrolling list box.

Here's the relevant evocation:

   print scrolling_list(-name => 'choose',-values=>@terms,-size=>254);

The HTML code output should look something like this:

   <SELECT NAME="choose" SIZE="254">

   <OPTION> abreaction
   <OPTION> abstract thinking
   <OPTION> acalculia
   .
   .
   .
   <OPTION> word salad
   <OPTION> xenophobia
   <OPTION> zoophobia
   </SELECT>

What I'm actually getting follows:

<select name="choose" size="254" delusion ="delusion of control " declarative memory ="decreased libido " screen memory ="seizure " olfactory hallucination ="overvalued idea " folie à deux ="formication " delusion of grandeur ="dementia " coma ="compulsion " catatonic rigidity ="catatonic stupor " preoccupation ="pressure of speech " apathy ="appropriate affect " dissociation ="dissociative amnesia " free-floating anxiety ="fugue " tremor ="trichotillomania " nihilism ="obsession " loose associations ="macropsia " dysphoria ="dysprosody " ideas of reference ="illusion " clouded consciousness ="cluttering " sundowning ="suppression " somnolence ="stereotypy " distractibility ="diurnal variation of mood " shame ="sleepwalking " negativism ="neologism " perseveration ="phantom limb " psychogenic mutism ="psychomotor retardation " insight ="insomnia " automatic obedience ="automatism " echolalia ="echopraxia " dystonia ="déjà entendu " somatic delusion ="somatization " agraphia ="akathisia " dysarthria ="dyscalculia " thought insertion ="thought withdrawal " derealization ="dereism " sublimation ="suicidality " cataplexy ="catatonic excitement " immediate recall ="imperative hallucination " remote memory ="repression " humor ="hyperactivity " tics ="trailing " psychosis ="rationalization " passive-aggression ="pathological jealousy " motor aphasia ="needle phobia " tactile hallucination ="tangentiality " panic ="paranoid delusion " labile affect ="labile mood " dysdiadochokinesia ="dysgraphia " jamais véçu ="judgment " recent memory ="regression " performance anxiety ="persecutory delusion " mimicry ="moderate mental retardation " polyphagia ="posturing " social intelligence ="social phobia " severe mental retardation ="sexualization " restricted affect ="retrograde amnesia " irritable mood ="isolation " retrospective falsification ="schizoid fantasy " magical thinking ="mannerism " jamais entendu ="jamais vu " alexia ="alexithymia " grief ="guilt " thought broadcasting ="thought disorder " inappropriate affect ="inhibition " bradykinesia ="catalepsy " mental retardation ="mental rituals " profound mental retardation ="projection " intelligence ="intelligence quotient " tension ="thought blocking " anosognosia ="anterograde amnesia " verbigeration ="visual hallucination " perception ="performance IQ " denial ="depersonalization " mood-congruent ="mood-incongruent " intellectual insight ="intellectualization " gustatory hallucination ="hallucination " primary process ="procedural memory " acrophobia ="acting out " disorientation ="displacement " introjection ="intuition " erythrophobia ="euphoria " ecstasy ="egomania " stupor ="stuttering " altruism ="ambivalence " aura ="autistic thinking " xenophobia ="zoophobia " abstract thinking ="acalculia " confusion ="controlling " agnosia ="agoraphobia " blocking ="blunted affect " externalization ="fear " anticipation ="anxiety " concrete thinking ="confabulation " poverty of content ="poverty of speech " micropsia ="mild mental retardation " twirling ="verbal IQ " astasia-abasia ="astereognosis " pseudodementia ="pseudologia " trance ="transient global amnesia " coprolalia ="coprophagia " ataxia ="auditory hallucination " eidetic memory ="elation " hypervigilance ="hypnagogic hallucination " dissociative identity disorder ="distortion " global aphasia ="glossolalia " euthymia ="expansive mood " selective inattention ="sensory aphasia " aggression ="agitation " chorea ="circumstantiality " hyperphagia ="hypersomnia " hypnopompic hallucination ="hypochondriasis " synesthesia ="systematized delusion " anomia ="anorexia " waxy flexibility ="word salad " reaction formation ="reality testing " anergia ="anhedonia " flat affect ="flight of ideas " melancholia ="mental age " déjà vu ="déjà véçu " apraxia ="asceticism " depression ="derailment " phobia ="pica " bizarre delusion ="blackout " delayed recall ="delirium " dyskinesia ="dyslexia " elevated mood ="erotomania " clanging ="claustrophobia ">
   <option value="abreaction                      ">abreaction </option>
   </select>

This produces a list box with only one term visible. Am I doing something wrong with CGI.pm or is there a glitch in it?

Thanks!

John M Rathbun MD
Asheville, NC


Reply via email to