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

chop() is used to remove last character where chomp() is
only remove new line if its existing or white space.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of Return Value?

999


What are the different ways to run cgi?

909


You want to read command-line arguements with perl. How would you do that?

846


What is posix in perl?

878


What are scalar data and scalar variables?

1056


Which functions in perl allows you to include a module file. State their differences.

898


For a situation in programming, how can you determine that Perl is a suitable?

834


How to concatenate strings in perl?

989


What is a chop() function in perl?

953


List the files in current directory sorted by size ?

932


How to do comment in perl?

907


What does last statement do in perl?

945


What is lexical variable in perl?

876


How to read a file into a hash array?

991


what is Polymorphism in Perl?

904