chomp is used to eliminate the new line character. It can used in many different scenarios.For ex: excuteScript.pl firstArgument.$firstArg = $ARGV[0];chomp $firstArg; --> to get rid of the carrige return.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2009 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/6184/default.asp?cachecommand=bypass