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 / ramya

chop removes the last character and returns the character
chopped
Chomp removes any trailing string that corresponds to the
current value of $/ and returns number of characters removed

Is This Answer Correct ?    11 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Comment on data types and variables in perl.

889


How to convert strings into an array in perl?

915


How do I sort a hash by the hash value?

883


How do you set environment variables in perl?

990


How interpreter is used in perl?

911


How do I sort a hash by the hash key?

887


How can I display all array element in which each element will display on next line in perl ?

889


Is there any way to add two arrays together?

927


How to print escaping characters inside a string in perl?

857


What does a die() function do in perl?

946


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

844


You want to connect to sql server through perl. How would you do that?

901


What does next statement do in perl?

948


What is the use of command “use strict”?

977


What does -> symbol indicates in Perl?

945