Standard foreach structure, printing the values in a list
foreach $name ( 'A', 'J', 'S', 'D ' ) { print "$name"; }