>is it possible to read in this file and what ever is before the : would
>become the name of
>the array?
>
>IE:
>I add this to the config file
>full:apple grape chestnut
What you're describing sounds like a symbolic reference which would give you
something like...
($arrayName, $stuff) = (split /:/, $line);
push @$arrayName, $stuff;
but this won't work with the 'use strict' pragma and you need to worry about
tracking the names of all these arrays. You're going to be better off using
a hash of arrays. Something like...
($arrayName, $stuff) = (split /:/, $line);
push @myServers{$arrayName}, $stuff;
Now you can find out all the list names with a
for $arrayName (keys %myServers) { print $arrayName }