...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
}


By: Stephen

Share on Facebook: On Twitter: TwitterTweet this!

  Reply to How To Remove Newline Characters

  Receive Our Newsletter




Questions about Learn Perl:

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

Ask question

More Articles:
How to open a web page in a new window
How to find more details about your files
How to copy a DVD