in perl , whats the difference between chomp and chop command
deletes first and last characters respectively
clears newline character if present and clears last character(anything) respectively
deletes last and first characters respectively
clears last character(anything) and clears newline character if present respectively