in reply to Exporting variables between two perl files
For example, if file1.pl uses do "file2.pl"; to run file2.pl, $var (including its value) will be inherited by file2.pl, unless $var is confined to the scope of file1.pl using 'my'.
One world, one people
|
|---|