[Canberra-pm] do read-local.config
Michael James
Michael.James at csiro.au
Wed Mar 29 18:21:27 PST 2006
In the perl cookbook it suggests a good way to keep
local configuration details out of a larger and messier script
is to put normal perl code into a separate file and "do" it.
But in a throwaway line (middle of page 328) it says,
of course neither the doer nor the done will have access
to the other's lexical (my) variables.
Hang ON! Lets get this clear, the done.config file
can't create a variable visible to the calling program,
nor see a pre-existing variable to change it.
What's the point?
Can any of you lexicographers explain
a way around this, to a bear of limited scope?
--
Michael James michael.james at csiro.au
System Administrator voice: 02 6246 5040
CSIRO Bioinformatics Facility fax: 02 6246 5166
PS: the IN-elegance of: eval `cat done`
has already been noted.
More information about the Canberra-pm
mailing list