Re: packages and variables

2004-03-04 Thread R. Joseph Newton
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

RE: packages and variables

2004-03-04 Thread EUROSPACE SZARINDAR
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

Re: packages and variables

2004-03-04 Thread zsdc
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' #=

packages and variables

2004-03-04 Thread Ralf Schaa
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