Question: What is meant by 'chomp'? where do we require this ?
Answer: chomp is used to eliminate the new line character. It can used in many different scenarios.<br><br>For ex: excuteScript.pl firstArgument.<br><br>$firstArg = $ARGV[0];<br><br>chomp $firstArg; --> to get rid of the carrige return.<br>
Question:
What is meant by 'chomp'? where do we require this ?
Answer:
chomp is used to eliminate the new line character. It can used in many different scenarios.<br><br>For ex: excuteScript.pl firstArgument.<br><br>$firstArg = $ARGV[0];<br><br>chomp $firstArg; --> to get rid of the carrige return.<br> Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.