in reply to Perl complains of redefining undefined module export

I suggest that you post the code that is generating the errors you posted. Ideally, after removing any code that is not essential to reproducing the errors.

  • Comment on Re: Perl complains of redefining undefined module export

Replies are listed 'Best First'.
Re^2: Perl complains of redefining undefined module export
by WienIsset (Novice) on May 11, 2009 at 05:58 UTC
    Right.

    I looked at the perlmod doc (see my reply elsewhere) and returned to the "It's a computer, computers are stupid literal, what's different from the template vs. my code..." concept. The one thing that I could see is the use of
    package Some::Module;
    and the statement that the Module.pm file was in the Some directory. In my case, the modules are in the 'pm' directory. So I added pm:: constructs in my "package" declarations:

    package pm::Foo;
    package pm::Bar;
    package pm::Baz;

    In some cases, it required comparable
    use strict; use warnings; use pm::Bar; use pm::Baz;
    declarations in the modules using the other modules, sometimes not. Still not sure (ie, still haven't really looked at why that might be). But now I get
    ServerDude-2:/www/cgi/jenny rip$ !./ ./Generate types Content-type:text/xml <value> <in>%d</in> <out> <types> <type> <string>pkey</string> <format>%{8}c</format> </type>... </types> </out> </value> ServerDude-2:/www/cgi/jenny rip$

    All is right with the world again.

    Thanks for all your time!

    Regards,
    rip