in reply to Fill an array in a module ?
Addendum:
I'd considered keeping the directory tree listings in files, then loading the files into arrays. Like this:
(WeeklyDirTree.Csv)
\DownLoad\Weekly\raw
\DownLoad\Weekly\processed
\DownLoad\Weekly\analysis
I'd then declare the arrays in each script. Like this:
splice( my @WeeklyDirTree );
Then I'd read the files into the arrays.
That would automate propagation of directory tree additions or changes. But I'd still be doing the copy-and-paste routine in each script for the repetitive open-and-read of the directory tree files. Which still seems cumbersome and kludgy.
|
|---|