Suspect one of these examples will get you going:
#!/usr/bin/perl use strict; print "-----[ Method 1 ]----------------\n"; my @SList = qw(Name Latitude Longitude); foreach my $Item_From_SList (@SList) { print " Item found: $Item_From_SList\n"; } print "-----[ Method 2 ]----------------\n"; my ($name, $lat, $long) = qw(Name Latitude Longitude); print " Name of Name: $name\n"; print " Name of Lat: $lat\n"; print " Name of Long: $long\n"; print "-----[ Method Ends ]-------------\n"; exit; __END__
Otherwise, see if you can expand on your question use more but smaller words. In my experience, that's the best way to arrive at a common language.
In reply to Re: (Beginner) Can 'qw' be implemented into a list?
by marinersk
in thread (Beginner) Can 'qw' be implemented into a list?
by Halbird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |