...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 buy and sell domain names
Podcast definition
Autoresponders explained