> open(FH, "$base/m10.html"); I'd debug this by starting with checking that the file got opened successfully: my $fn = "$base/m10.html"; open FH, '<', $fn or die qq/Can't open "$fn" for input: $!.\nStopped/; -mark