in reply to When is a trailing space not a trailing space?

Are you doing s/\s+$//mg? You say you're slurping the file and parsing it, which suggests that you're handling multiple lines at once, so you need to do multi-line matching.

Alternatively, is it possible that your output routine is padding things?


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: When is a trailing space not a trailing space?
by markguy (Scribe) on Oct 17, 2005 at 15:07 UTC

    It's a line-by-line parse. Each line is a field basically, although of course there are fun-filled exceptions to this "rule". For good measure, I was stripping each potential field just before displaying it. And the only output routine I have going at the moment is print, so I'm going to have to trust it's something in the file.

    Appreciate the help in any case!