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 / devinder kumar

chop will indiscriminately remove (and return) the last
character passed to it, while chomp will only remove the
end of record marker (generally, "\n"), and return the
number of characters so removed.

Is This Answer Correct ?    40 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of perl warnings? How do you turn them on?

1039


Differentiate use and require?

943


What does file test operators do in perl?

912


Comment on data types and variables in perl.

925


How many data types are there in perl?

960


How to get help for perl?

974


What does cgi program store?

909


what is Chop & Chomp function does?

989


How to close a file in perl?

935


What are the arguements we normally use for perl interpreter?

956


Explain the various characteristics of perl.

945


Explain 'grep' function.

976


What does the’$_’ symbol mean?

1003


What are the options that can be used to avoid logic errors in perl?

951


What happens when you return a reference to a private variable?

1006