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:

Perl
1
2
3
4
5
excuteScript.pl FstArgu.
 
$argu=$ARGV[0];
 
chomp$argu;-->to get rid of the carrige return.

All perl Questions

Ask your interview questions on perl

Write Your comment or Questions if you want the answers on perl from perl Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---