in reply to (Beginner) Can 'qw' be implemented into a list?
Is this what you are looking for?
use strict; use warnings; sub f { print "$_[0]\n"; } my @SList = qw(Name Latitude Longitude); foreach my $item (@SList) { f( $item ); } [download]