WienIsset has asked for the wisdom of the Perl Monks concerning the following question:
Generate is using both Foo and Bar:Generate[.pl] pm/Foo.pm pm/Bar.pm
Foo also uses Bar. If I put 'use Bar;' in Foo, however, I get:use Foo; use Bar;
So, in one run, it is complaining that the undefined sub has been redefined.ServerDude-2:/www/cgi/jenny rip$ ./Generate types Subroutine LWXBar redefined at pm/Bar.pm line 73. Undefined subroutine &Foo::LWXBar called at pm/Foo.pm line 116. ServerDude-2:/www/cgi/jenny rip$
As you can see it has now proceeded beyond the &Bar::LWXBar() in Foo, but it's tanked in the main script, again with an undefined LWXBar sub.ServerDude-2:/www/cgi/jenny rip$ ./Generate types Undefined subroutine &main::LWXBar called at ./Generate line 89. ServerDude-2:/www/cgi/jenny rip$
Thoughts? Suggestions?ServerDude-2:/www/cgi/jenny rip$ ./Generate types Undefined subroutine &Bar::LWXBar called at ./Generate line 89.
(MacOS 4.11, perl v5.8.8 darwin-2level)BEGIN { use Exporter (); our ($VERSION, @ISA, @EXPORT); # set the version for version checking $VERSION = "01.f"; @ISA = qw(Exporter); @EXPORT = qw(&GeneratorConfig &Generate &GetWidthFromType &GetWidthFromFormat); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl complains of redefining undefined module export
by ikegami (Patriarch) on May 09, 2009 at 23:51 UTC | |
|
Re: Perl complains of redefining undefined module export
by Bloodnok (Vicar) on May 10, 2009 at 00:20 UTC | |
by ikegami (Patriarch) on May 10, 2009 at 00:38 UTC | |
by ig (Vicar) on May 10, 2009 at 01:54 UTC | |
by ysth (Canon) on May 10, 2009 at 20:37 UTC | |
by WienIsset (Novice) on May 11, 2009 at 05:47 UTC | |
|
Re: Perl complains of redefining undefined module export
by ig (Vicar) on May 09, 2009 at 23:37 UTC | |
by WienIsset (Novice) on May 11, 2009 at 05:58 UTC |