Question:

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

Answer:

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.

 


Keywords:

© 2017 QuizBucket.org