Monday, July 18, 2016

Difference between the perl functions: chop and chomp?

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.

No comments:

Post a Comment