nisha has asked for the wisdom of the Perl Monks concerning the following question:
In my perl module i have written the subroutine for ReadConfigFile. I have another perl script which uses this perl module Hello and invokes ReadConfigFile from the script. When i ran my script it gives mepackage Hello; use Exporter; @ISA = ('Exporter'); # create an Exporter object. # Export all variables and functions via EXPORT statement # updated for exporting Setup CLI keys and Variables our($x,$test,$TestCase); @EXPORT = qw($x $test $TestCase ReadConfigFile);
I do not know if i am missing out on something. Please help. Thank YouUndefined subroutine &Hello::ReadConfigFile called at C:\Test\Hello.pl + line 30.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with functions in modules
by Corion (Patriarch) on Oct 26, 2005 at 09:11 UTC | |
by nisha (Sexton) on Oct 26, 2005 at 09:46 UTC | |
by Corion (Patriarch) on Oct 26, 2005 at 10:52 UTC | |
|
Re: Problem with functions in modules
by pajout (Curate) on Oct 26, 2005 at 09:25 UTC | |
|
Re: Problem with functions in modules
by chanakya (Friar) on Oct 27, 2005 at 07:00 UTC |