kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
This may be very simple question, but still some light on this would give me clear picture.
I have two files file1.pl and file2.pl. In the first file i have $var = 1 and i want it to get the value in second file.Please give me some ways to do it.
I tried to use the file1.pl in file2.pl but end up with vein.
Note: May be $var can be global variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporting variables between two perl files
by polettix (Vicar) on Jul 07, 2005 at 08:29 UTC | |
|
Re: Exporting variables between two perl files
by anonymized user 468275 (Curate) on Jul 07, 2005 at 08:43 UTC | |
|
Re: Exporting variables between two perl files
by gube (Parson) on Jul 07, 2005 at 07:32 UTC | |
|
Re: Exporting variables between two perl files
by tphyahoo (Vicar) on Jul 07, 2005 at 16:29 UTC |