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

How to create a package?

950


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

940


Does Perl have reference type?

927


What are the advantages and disadvantages of perl language?

916


Why to use perl scripting?

999


How do find the length of an array?

1129


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

904


Explain gmtime() function in perl?

973


What does `$result = f() .. g()' really return?

1195


Differentiate between c++ and perl.

1008


How can you replace the characters from a string and save the number of replacements?

891


Define operators used in perl?

938


What does perl do in linux?

942


How do I sort a hash by the hash value?

922


What is the tk module?

953