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 warn function in perl?

913


What are the different string manipulation operators in perl?

884


Explain splicing of arrays?

879


Explain the difference between "my" and "local" variable scope declarations. ?

1011


How do you find the length of an array?

922


How to read a directory in perl?

974


What is the use of strict?

880


Difference between the variables in which chomp function work ?

1030


Why to use perl scripting?

945


How to renaming a file in perl programming?

999


What is a chomp() function in perl?

979


What is the use of command “use strict”?

977


What value is returned by a lone `return;’ statement?

1025


How to read a single line from a file in perl?

937


What does the q{ } operator do?

863