J
Jeff Thies
I have all these "config" files with lists of global scalars:
config_1.cfg
###########
$scalar1='something';
$scalar2='something_else';
#########
That worked for me in that I could import those scalars like this:
require 'path_to/config_1.cfg';
Now I want to import those into a sub and make that list of scalars
local to that sub. (I want to do something with the list of scalars in
all these "config" files one file at a time) How do I do that?
I can see where I would have been better off using hashes!
Jeff
config_1.cfg
###########
$scalar1='something';
$scalar2='something_else';
#########
That worked for me in that I could import those scalars like this:
require 'path_to/config_1.cfg';
Now I want to import those into a sub and make that list of scalars
local to that sub. (I want to do something with the list of scalars in
all these "config" files one file at a time) How do I do that?
I can see where I would have been better off using hashes!
Jeff