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.
In reply to Re: Pattern Match and Replace Problem
by Chady
in thread Pattern Match and Replace Problem
by belize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |