XP is just a number | |
PerlMonks |
Re: Use a Variable in a Separate Perl Scriptby Athanasius (Archbishop) |
on Jun 08, 2012 at 16:40 UTC ( [id://975206]=note: print w/replies, xml ) | Need Help?? |
Or just use the ‘obvious’ solution: save $final to a temporary file?
The only coupling required here is that the name of the shared file must be known to both scripts. Not saying this is the best solution, but it does have the virtues of simplicity and extensibility (since it is straightforward to add data to the file if additional data sharing between the scripts is required down the track). HTH, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|