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 / nagaraju kancherla

chop() removes the last character from a scalar value.

chomp() checks whether the last characters of a string or
list of strings match the input line separator defined by
the $/ system variable. If they do, chomp removes them.


Is This Answer Correct ?    25 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the count of parameters passed to a perl subroutine?

895


What is the syntax used in Perl grep function?

982


Explain the execution of a program in perl.

931


How to code in perl to implement the tail function in unix?

888


What is Perl?

956


What is -> symbol in perl?

964


What are the various perl data types based on the context?

894


What does delete function do in perl?

936


What is confess function in perl?

896


Explain USE and REQUIREMENT statements?

886


How to remove a directory in perl?

927


What happens when you return a reference to a private variable?

945


What is grep used for in perl?

878


What is perl scripting?

882


How will you access an element of a perl array?

898