in reply to weird problem
Why do you do this:
$txt =~ s/\n{3,}/\n\n/g;
When you're going to do this anyways:
$txt =~ s/\r|\n//g;
?
Also, I don't think you need that first print FILE;
Also, try adding or die $! after your open calls.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: weird problem
by Anonymous Monk on Apr 20, 2012 at 21:12 UTC |