in reply to Re: When is a trailing space not a trailing space?
in thread When is a trailing space not a trailing space?

It absolutely shouldn't match if it's not a space character... I've just never had so much trouble *seeing* what the character is and getting rid of it.

It makes me wonder what else has snuck into tables I've been working with all because the invisible character wasn't at the end where I'm regularly look to clean up.

In any case, I'll give od a shot... thanks!

  • Comment on Re^2: When is a trailing space not a trailing space?

Replies are listed 'Best First'.
Re^3: When is a trailing space not a trailing space?
by bluto (Curate) on Oct 17, 2005 at 16:40 UTC
    It makes me wonder what else has snuck into tables I've been working with all because the invisible character wasn't at the end where I'm regularly look to clean up.

    Rather than cutting out unwanted characters, you may want to only match what you know to be ok for the entire line. For example, if you want only printable non-whitespace characters, then match only that (see "perldoc perlre" for more details). Also, you may want to warn/die if you find characters in a line that you don't think should be there.