Programming Languages C# Subjective
Mar 14, 2013

Where do we require ‘chomp’ and what does it mean?

Detailed Explanation

We can eliminate the new line character by using ‘chomp’. It can used in many different scenarios.
For example:
excuteScript.pl FstArgu.
 
$argu = $ARGV[0];
 
chomp $argu; --> to get rid of the carrige return.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback