in reply to Error message while reading from file
while(defined(my $line = <EXP>)) { next unless $line =~/\s/; ... } [download]