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

Explain splicing of arrays?

1001


Which has highest precedence in between list and terms? Explain?

923


What is the function of cgiwrap in cgi programming?

977


Explain string comparison operators in perl.

1054


What is the difference between perl list and perl array?

906


What is cpan ? What are the modules coming under this?

974


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

3133


Explain cpan?

1024


What is the closure in PERL?

1069


How will you create a file in perl?

1058


What is the use of -t?

1023


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

2358


How do you match one letter in the current locale?

1063


What are hashes?

995


Explain different types of perl operators.

991