Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between chop & chomp functions in perl?

Answer Posted / wicked_sunny

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.

Is This Answer Correct ?    22 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a directory in perl?

1007


Explain splicing of arrays?

873


Which operator in perl is used for the concatenation of two strings?

962


What does next statement do in perl?

937


What is the different between array and hash in perl programming?

883


What is a perl references?

874


how to connect cisco switch uisng perl script

3801


Why do you use Perl?

930


Differentiate use and require?

893


Create a function that is only available inside the scope where it is defined ?

962


What is stdin in perl?

920


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

954


What is v-strings?

998


How to read a file into a hash array?

1001


Explain goto expr?

815