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 FOR #2


for   $x  (0 .. $ #myarray)  # uses range operator to indicate list over which for operates
   { print  “ $myarray [ $x ]\n”; }