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

Chop removes the last character of string completely and returns that last character. While chomp removes the last character if it is new line.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between die and exit.

995


What are some of the key features of objects in perl?

942


Explain substr function in perl?

1029


What does undef function in perl?

944


what is the function that is used to identify how many characters are there in a string?

961


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

3083


What is the difference between die and exit in perl?

998


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

998


What is the use of now constructor in perl?

968


How to access parameters passed to a subroutine in perl?

954


Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?

979


Why to use perl scripting?

999


Difference between the variables in which chomp function work ?

1066


How can memory be managed in Perl?

1051


What are scalars?

987