in reply to storing variable names in an array
Consider using a hash instead:
Alternately, just store your filenames in the array (if order is important), like:my %files = ( 'file1' => 'tom', 'file2' => 'bob', 'file3' => 'joe', ); $files{'file2'} = 'sam';
Adding the additional step of the array of variable names is usally the wrong path to go down.my @names = ('tom','bob','joe'); $names[1] = 'sam';
-- Kirby, WhitePages.com
|
|---|