On Dec 3, 2003, at 3:59 AM, Jan Gruber wrote: [..]
What could be a possible reason, that functions exported by a module appear
like that in the Symbol Table:


Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/ Eris_Gate.pm:146]
Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/ Eris_Gate.pm:147]
Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/ Eris_Gate.pm:148]

that looks like an 'autoloader' event.


First of all, the line numbers are wrong, looking at the source there is no
sub definition in these lines.

Ok, so what IS at that lines 146..148 ???


In Eris_Gate.pm:
@EXPORT contains the names for the subs to be exported, @EXPORT_OK is empty
and the package @ISA (Exporter).

That is basically bassEndYakWard. It would be politer to have them in the @EXPORT_OK, and only push out a few key default ones in @EXPORT.

I use Modules::Eris_Gate; in the script, but calling a sub defined in there
results in "Undefined subroutine &main::return_sumfink called at ...."

It might help us if you told us where we could find this module, and what it is suppose to be about.

What am i missing?


As Rob noted, there is that question
of how exactly does the package line
in it read. Does it read as

package Modules::Eris_Gate;

and hence your

use Modules::Eris_Gate;

should have picked it up correctly.

OR does it read

package Eris_Gate;

hence you should have used

        use lib "/usr/lib/perl5/site_perl/5.8.0/Modules";
        use Eris_Gate;




ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to