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

What are the various file operations in perl. Explain with example.

953


What is a chomp() function in perl?

1052


How can arrays be tied?

916


What are the steps involved in configuring a server using cgi programming?

906


What are the different types of perl operators?

1081


What is the closure in PERL?

1019


How interpreter is used in perl?

951


How to create a directory in perl?

1077


Elaborate on perl bite-wise operators.

914


Explain strftime() function in perl?

949


What are the purpose of close(), getc() and read() functions?

884


what is the difference between java and cgi?

1083


What are the different ways to run cgi?

961


Explain substr function in perl?

1037


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

961