in reply to Text File Parsing.
However, it also looks like there may be extra newlines in there as well. You apparently want only single newline characters at the end of each line, so that the text appears "single spaced".
Update: ^\s+ will also wipe out lines that contain only "newline" characters: a desirable side-effect. However, after that, it may be helpful to completely eliminate elements from @array that have now become empty.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Text File Parsing.
by graff (Chancellor) on Nov 25, 2003 at 03:34 UTC |