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

How do you find the length of an array?

903


Which of these is a difference between Perl and C++ ?

964


Create a function that is only available inside the scope where it is defined ?

949


Can you add two arrays together?

864


List the data types that Perl can handle?

965


Difference between the variables in which chomp function work ?

1009


Explain 'grep' function.

923


what is the main function of fork() in cgi programming?

1033


Explain goto label, goto name, and goto expr?

879


How to determine strings length in perl?

902


What does next statement do in perl?

928


What is the function of virtual documents in cgi programs?

918


Is there any way to add two arrays together?

911


What are different data types that perl supports. Elaborate on them.

978


What is it meants by '$_'?

858