Jonas, I think you might want just $line =~ /something/. The my would scope it as a new variable that should be blank I would think. > A syntax error. Shuld be: > while (my $line = <INF>) { Regards, KAM