[sf-perl] Perl one liner to remove all control characters from an input file

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Thu Oct 5 13:45:01 PDT 2006

Yes Matt, I agree that I should have phrased my request differently, but
my thanks go to David Alban and Tatsuhiko Miyagawa for their prompt,
kind, and respectful responses.  

-----Original Message-----
From: sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.org
[mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.or
g] On Behalf Of Matthew Lanier
Sent: Thursday, October 05, 2006 1:18 PM
To: San Francisco Perl Mongers User Group
Subject: Re: [sf-perl] Perl one liner to remove all control characters
from an input file

On Thu, 5 Oct 2006, Chris Palmer wrote:

> Loo, Peter # PHX writes:
>> Will someone kindly send me a Perl one liner that will remove all 
>> CONTROL CHARACTERS from an input file and output to another file?

a slightly better way to phrase your question might be:  what man pages
should i read to find out how to remove all CONTROL CHARACTERS from an
input file?

> I'll say it: RTFM.  In this case, you could have found the answer by 
> reading the perlre man page and searching for the string "control".  
> In my case, the best answer is found at the second match (the "cntrl" 
> named class).

provided 'F' stands for 'Fine', then i agree.  anything less friendly
than Fine is absolutely verboten around here.

matt (list grand-mom).


SanFrancisco-pm mailing list
SanFrancisco-pm at pm.org

This E-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by reply E-mail, and
destroy all copies of the original message.

More information about the SanFrancisco-pm mailing list