Re: Simple question
- From: binishar@xxxxxxxxxxx (Binish A R)
- Date: Mon, 30 May 2005 23:35:24 +0530
Tony Marquis wrote:
Very simple question.
I'm reading a file and i want to remove all the <CR><LF> in each lines.
while(FIC) {
$test = $_; #remove crlf. ........... some code
}
How can i do that.
Try
$test =~ s/[\r\f]//g;
to remove newlines, use
$test =~ s/[\n]//g;
.
- References:
- RE: remove duplicate lines
- From: Tielman Koekemoer \
- Re: remove duplicate lines
- From: John W. Krahn
- Simple question
- From: Tony Marquis
- RE: remove duplicate lines
- Prev by Date: Simple question
- Next by Date: Perl 5.6.0, AIX, Missing Module
- Previous by thread: Simple question
- Next by thread: Re: remove duplicate lines
- Index(es):