in reply to Re: array reading problem
in thread array reading problem

You have a small but significant typo in your code.

while ( my $line <$datfh> ) {

Should be

while ( my $line = <$datfh> ) {

Cheers,

JohnGG