Scripting >> Perl >> How to display all elements in a LIST

eg. LIST[0] = 1, LIST[1] = 2, LIST[2] = 3 foreach $item (@LIST) { print "$item\n";