in perl , whats the difference between chomp and chop command

  1. deletes first and last characters respectively

  2. clears newline character if present and clears last character(anything) respectively

  3. deletes last and first characters respectively

  4. clears last character(anything) and clears newline character if present respectively


Correct Option: B

Find more quizzes: