Ralf Schaa wrote:
> Cheers all,
>
> i am doing my first steps with writing packages/modules and of course
> there are problems:
>
> the module holds a variable in a subroutine. this variable i like to
> pass to the callerprogram,
Dont. Just don't. Use good design in your program instead. Good
ocess_data/_makeLevel2";
use testMod qw(&testThis $test);
use strict;
testMod::testThis();
print "1: ".testMod::getTest()." \n";
print "2: $test\n";
hope it help
Michel
-Message d'origine-
De: Ralf Schaa [mailto:[EMAIL PROTECTED]
Date: jeudi 4 ma
Ralf Schaa wrote:
the module 'testMod.pm''
#==
package testMod;
use strict;
use Exporter;
our @ISA = ("Exporter");
our @EXPORT= qw($test &testThis);
our @EXPORT_OK = qw($test &testThis);
sub testThis{ our $test = "test";}
1;
the caller-program 'test.pl'
#=
Cheers all,
i am doing my first steps with writing packages/modules and of course
there are problems:
the module holds a variable in a subroutine. this variable i like to
pass to the callerprogram,
so it is in the @EXPORT_OK and even in the @EXPORT. So far so good, i
thought!
but nothing happ