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

chop() is used to remove last character where chomp() is
only remove new line if its existing or white space.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to concatenate strings with perl?

865


Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

1054


Explain lexical variables.

957


What are scalars in perl?

965


Explain the difference between declarations of 'my' and 'local' variable scope in perl?

926


What is the function of cgiwrap in cgi programming?

928


Explain grooving and shortening of arrays and splicing of arrays?

902


What is epoch time in perl?

939


How do I generate a list of all .html files in a directory?

961


what are steps to do to lock the sony ericsson mobile with password?

2207


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1025


how to get back up from private character editor which is saved in the format of .udf

2298


Explain what is lvalue?

1027


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

1065


What's the difference between /^Foo/s and /^Foo/?

1193