in reply to reading scalars from text file

If you want your variables in an array then you'll have to split the line e.g
## this will split on whitespace, and put the fields into @variables my @variables = split /\s+/, <VARIABLES>;
If you're using flat files as storage facilities then you may want to look into the likes of Text::CSV, AnyData or perhaps even Inine::Awk.
HTH

_________
broquaint