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

Write a program to decode the data in the form using cgi programming

1009


What are the advantages of perl programming?

956


What does last statement do in perl?

962


What happens in dereferencing?

980


Define say() function in perl?

920


List the data types that Perl can handle?

982


You want to add two arrays together. How would you do that?

836


Explain 'grep' function.

934


What is the function of virtual documents in cgi programs?

938


Explain goto label, goto name, and goto expr?

889


What does this symbol mean '->'?

940


What is a chop() function in perl?

971


How can the user execute a long command repeatedly without typing it again and again?

894


What are the various perl data types based on the context?

907


Explain arrays in perl.

900