RE: Removing line-feed characters from a text file.

2002-12-19 Thread Bob Showalter
> -Original Message- > From: David Buddrige [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 12:45 AM > To: [EMAIL PROTECTED] > Subject: Removing line-feed characters from a text file. > > ... How to determine the exact value of a non-printable character in a > text file. I

Re: Removing line-feed characters from a text file.

2002-12-19 Thread John W. Krahn
David Buddrige wrote: > > Hi all, Hello, > I have a bunch of C++ source files that have had form-feed characters > inserted in them every so often. In vi and emacs these characters > appear as ^L. I am wanting to write a short perl script that will pull > out these characters; I am thiking of

Re: Removing line-feed characters from a text file.

2002-12-18 Thread Ramprasad
do something like { local($/)=undef; $str=; $str=~s/\f+//g; } David Buddrige wrote: Hi all, I have a bunch of C++ source files that have had form-feed characters inserted in them every so often. In vi and emacs these characters appear as ^L. I am wanting to write a short perl script that w

Re: Removing line-feed characters from a text file.

2002-12-18 Thread David Buddrige
Hi all, I have figured it out! Script is below: while(<>) { $_ =~ s/\f//g; print; } thanks guys David David Buddrige wrote: Hi all, I have a bunch of C++ source files that have had form-feed characters inserted in them every so often. In vi and emacs these characters appear as