use require question

2002-10-02 Thread Buch, Jasper \(Jasper\)
Hello, I want to declare and initialize two variables in one script and use the same variables in another script, like this: script_1.pl # use strict; $var1 = 'foo'; $var2 = 'bar'; script_2.pl # use strict; require c:/ps/scripts/test/script_1.pl; print In script_2.pl: $var1, $var2\n;

RE: use require question

2002-10-02 Thread Buch, Jasper \(Jasper\)
You're right, of course; a module would do the trick and I did consider it. But is it the only way..? - jasper -Original Message- From: Martin Moss [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 18:17 To: Buch, Jasper (Jasper); [EMAIL PROTECTED] Subject: Re: use require question You