http://www.perlmonks.org?node_id=46222


in reply to Stripping funny characters

The amusingly-named Demoronizer is a Perl program that cleans up yucky stuff like that.

I haven't looked at it, but I've heard good things about it. Of course, it claims to use Perl 4 features, so perhaps you'll be the one to bring it into the 21st century. (By the time the 21st century rolls around, that is.)

Replies are listed 'Best First'.
Re: Re: Stripping funny characters
by extremely (Priest) on Dec 12, 2000 at 14:41 UTC
    Ah, I'd had forgotten that little gem existed. I've used it before. This quote from the page you link says it all: (Rule of thumb--every time Microsoft use the word "smart," be on the lookout for something dumb).

    The code needs serious work, OTOH. It is not only perl4ish but also full of goofiness like this:

    # Eliminate idiot MS-DOS carriage returns from line terminator $s =~ s/\s+$//; $s .= "\n";

    All in all it isn't too bad, I'd use it as is, myself =)

    --
    $you = new YOU;
    honk() if $you->love(perl)