# in my.conf file FOO 'this' # in my script use strict; use Config::Simple; use vars qw($FOO); Config::Simple->import_from("my.conf"); # the following works fine print "$FOO\n"; #### # in my.conf file FOO 'this', 'that' # in my script use strict; use Config::Simple; use vars qw(@FOO); Config::Simple->import_from("my.conf"); # the following prints nothing at all for (@FOO) { print "$_\n"; } # however use vars qw($FOO); Config::Simple->import_from("my.conf"); # the following works fine for (@$FOO) { print "$_\n"; } # however, if I provide only one value for FOO in my.conf # in my.conf file FOO 'this' # the following croaks for (@$FOO) { print "$_\n"; } Can't use string ("this") as an ARRAY ref while "strict refs" in use at ./test.pl line 41, line 1.