http://qs1969.pair.com?node_id=502352


in reply to How to pass a parameter between cgi's?

In CGI2.CGI, where are you defining $query? It looks to me as if you cut'n'pasted some code from someone else without a full understanding of what it's doing.

Try either of the following approaches:

Update: $CGI -> CGI in the second code example.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: How to pass a parameter between cgi's?
by JaredF (Initiate) on Oct 24, 2005 at 02:28 UTC
    Dragonchild --
    Code sample #1 works like a charm. Thank you.
    In response to your question -- "In CGI2.CGI, where are you defining $query." -- the answer is: Nowhere in the example, but down below in the actual source code. My mistake. My grasp of OO perl and of CGI are, um, weak enough to cause trouble. Thanks for getting me out of it to complete a rather long piece of code.
    -- Jared