On Mon, 30 May 2005 13:09:23 -0400 Tony Marquis <[EMAIL PROTECTED]> 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. First of all: stop hijacking threads! In future, please send new mails to the list and don't click the reply button and delete the content of the mail.. thanks while(FIC) { s/\r\n//; #remove crlf print; # or: chop;chop; # remove crlf print; } and RTFM! Elvis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>