export variables
- From: jwaixs@xxxxxxxxx
- Date: Sat, 29 Dec 2007 04:32:36 -0800 (PST)
Hello,
Could someone tell me if this is possible and if it is how I do it. I
have the following two file;
file1.pl
---
print "$testvar\n";
---
file2.pl
---
my $testvar = 37;
use "file1.pl";
---
If I run file2.pl (perl file2.pl) I will of course only see a newline.
But is it possible to export the testvar to file1.pl?
Thank you,
Noud
.
- Follow-Ups:
- Re: export variables
- From: Patmarbidon
- Re: export variables
- From: J. Peng
- Re: export variables
- Prev by Date: Handling errors when working with files
- Next by Date: Re: Problem with adding a connection with Win32::NetResource
- Previous by thread: Handling errors when working with files
- Next by thread: Re: export variables
- Index(es):