in reply to Re^2: creating a wrapper class
in thread creating a wrapper class

package MyLog; use base qw(Log::Log4Perl); ....

/J\

Replies are listed 'Best First'.
Re^4: creating a wrapper class
by aroc725 (Acolyte) on Jul 17, 2006 at 15:22 UTC
    I'm getting this error message in the Netscape Web server 'errors' log file:

    ...mid_yr_rpt_survey.cgi did not produce a valid header (name without value: got line " (perhaps you need to 'use' the module which defines that package first.)")

    despite having this in the 'HinLog.pm' file:

    package mid_yr_rpt_survey::HinLog;

    use Log::Log4perl qw(get_logger); # don't need this, right?
    use base qw(Log::Log4Perl);

    and this in the 'DBI.pm' module that's trying to use 'HinLog':

    package mid_yr_rpt_survey::DBI; ...
    use mid_yr_rpt_survey::HinLog;
      Don't use Log::Log4perl qw(get_logger); if you use base.

      If you didn't read perltoot and/or base, please do so now :-)

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}