Perl references: create, dereference and debug with confidence
Learn enough to be dangerous with one of Perl’s most powerful features
Read it
Upgrade your list printing using field separator variables
A typical way to print every element of an array in Perl is using a foreach loop: