|
|
Two borthers: chop and chomp |
|
|
Taras |
|
|
Perl / Programming in Perl |
|
|
Click to Visit |
|
|
99 |
|
Chop and Chomp are two very similar functions. Both of them are used to delete symbols from the tail of the given string. While both work with string and list parameters, Chop deletes any ending symbol Chomp deletes only specified substring from the end. If you pass list to any of these two, all list elements will get processed and the return value would be the result of last operation.
|