in reply to For loop not executing all the values

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,