Hello parthodas,
You have the wrong kind of loop. Change this:
foreach (my $value = <$fh>)
to this:
while (my $value = <$fh>)
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: For loop not executing all the values
by Athanasius
in thread For loop not executing all the values
by parthodas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |