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 ); }
In reply to Re: (Beginner) Can 'qw' be implemented into a list?
by hdb
in thread (Beginner) Can 'qw' be implemented into a list?
by Halbird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |