chomp: Deletes only new line character "$/ (or) \n" (input record separator or new line character) at the end of the line.
chop: Deletes the last character irrespective what it is.
chop: Deletes the last character irrespective what it is.
No comments:
Post a Comment