nisha has asked for the wisdom of the Perl Monks concerning the following question:
The variables that are tried to be exported have to be accessed within the functions in perl module as well as outside. Ex: If i have a function testpm in the perl module Hello then the variables have to be accessed in that function as well as in the functions of the script which uses this perl module. When i run my script i get an error as below.package 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 @EXPORT = qw($x $TestCase $TSPass $ConfigFile $TCPass);
Please Please help me with this; i am badly stuck at this point. Thank You.Global symbol "$TestCase" requires explicit package name at Hello.pm l +ine 58.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Perl Modules.
by sauoq (Abbot) on Oct 26, 2005 at 07:36 UTC | |
by nisha (Sexton) on Oct 26, 2005 at 08:32 UTC | |
by sauoq (Abbot) on Oct 26, 2005 at 16:22 UTC | |
|
Re: Problem with Perl Modules.
by arunvelusamy (Monk) on Oct 26, 2005 at 08:11 UTC | |
by sauoq (Abbot) on Oct 26, 2005 at 18:05 UTC | |
|
Re: Problem with Perl Modules.
by jesuashok (Curate) on Oct 26, 2005 at 07:49 UTC |