Thanks for the comments so far. While I haven't solved my problem yet, I have learned more about CGI.pm. My script:
#! /perl/bin/perl -w use strict; use CGI(); use DBI; use Data::Dumper; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use LC::SchemaClassMaker; use LC::DBMaint; my $file_in = '/web/lc/perllib/schema.xm'; my $drh = 'dbi:CSV:f_dir=/web/lc/database'; my $dbh = DBI->connect($drh); my $cm = LC::SchemaClassMaker->new({ schema_filename => $file_in , base_class => 'LC::PersistentSQL' , dbh => $dbh , class_prefix => 'XT' }); my $tm = LC::DBMaint->new({ dbc_classname => 'XT::book' }); $tm->set_attr('default', 'widgets', { review => {widget => 'scrolling_list'} , author => {widget => 'scrolling_list'} }); $tm->execute; my $header_args = $tm->get_cookie ? {-cookie => $tm->get_cookie} : {}; print CGI::header($header_args), CGI::start_html(); print $tm->default_html(); print CGI::end_html();
There is are no references to CGI.pm in LC::SchemaClassMaker.

LC::DBMaint does a use CGI(); and makes several non-OO calls (CGI::funcname), including calls to param, cookie, script_name, script and various HTML-generating methods.

This module also instantiates several XT::book objects whose class are generated by SchemaClassMaker and whose methods are all inherited from a base class, LC::PersistentSQL (which has no CGI references) but inherits from a class LC::Persistent which is similar to LC::DBMaint in its use of CGI: use CGI; and several non-OO calls to param and HTML-generating functions.

(In the event you see typos, etc. in the above, this does work fine under vanilla CGI scripting.


In reply to Re: CGI.pm not returning POSTed param w/mod_perl by voyager
in thread CGI.pm not returning POSTed param w/mod_perl by voyager

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.