in reply to Pattern Match and Replace Problem

Answer to #2:

you already split the individual lines into array fields, so \ns will only be at the end of the lines... you should chomp instead:

$File =~ s/\n//; # removes newline characters. # it should be chomp($File); # removes newline characters from the end of the line fa +ster.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/