what is meant by 'chomp'? where do we require this ?

Discussion in 'Computer Science and IT Students' started by Guest, Dec 29, 2006.

  1. Guest

    Guest Guest

    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.

    For ex: excuteScript.pl firstArgument.

    $firstArg = $ARGV[0];

    chomp $firstArg; --> to get rid of the carrige return.

Share This Page