in reply to (Beginner) Can 'qw' be implemented into a list?

Try posting some more code (like the subroutine you mentioned), and maybe some sample data from the relevant data file. The one line of code you showed is certainly sensible on its own - it creates an array that contains just three string values ("Name", "Latitude" and "Longitude").

Now, if you have a data file containing lines of data, with perhaps 3 values per line, you might be wanting to load that into a some sort of data structure... perhaps an array of hashes... something like this?

my @SList = qw(Name Latitude Longitude); my @AoH; while (<FILE>) { chomp; my %hash; @hash{@SList} = split; # left-hand-side is called a "hash slice" push @AoH, \%hash; }