Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Perl >> Snippet

loop through array using FOREACH with $_


----- Loop through array  using foreach -------
foreach $element  ( @myarray )     # $element is a reference to each value of @myarray
   { print "$element \n " ; }