...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How To Remove Newline Characters

Computing : Learning Perl

The easiest way to remove newline characters in Perl is with the chomp command, for instance to remove off the lines of input:
while ($lines=) {
chomp;
# code goes here
}


Profile image!
By: Stephen

  Reply to How To Remove Newline Characters

  Receive Our Newsletter

Learn Perl picture



Questions about Learn Perl:

how to remove a newline from a text file?...
- Fri, Mar 17th 2006

Ask question

More Articles:
How to export to Excel with PHP
Things to do while exercising
How to find keywords for your site