How to loop through an array
If you have an array @myarray and you want to loop through it line by line, you can use the following,
foreach(@myarray)
{
$line = $_;
print $line . "\n";
}
[Click to add or edit comments])
Please prepend comments below including a date