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

What is perl I used for?

905


What is an interpolation in perl?

931


What is the difference between perl array and perl hash?

978


Explain split function in perl?

927


What is automatic error handling in perl?

969


Explain USE and REQUIREMENT statements?

882


What are the arguements we normally use for perl interpreter?

906


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

826


How to read multi lines from a file in perl?

872


How to sort arrays in perl?

969


What is subroutine in perl?

889


What is the difference between die and exit in perl?

937


Explain ivalue in perl?

911


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

860


How to concatenate strings with perl?

800