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 are some common methods to all handles in perl?

925


Why do you use Perl?

988


How to connect to SQL server through Perl?

1058


What are the reasons that cookie server can’t handle multiple connections?

949


What is it meants by '$_'?

903


Explain lists and ivalue?

957


Explain about typeglobs?

944


How do you set environment variables in perl?

1050


What are some of the key features of objects in perl?

946


In CPAN module, name an instance you use.

964


What are the various uses of perl?

1045


Explain the difference between "my" and "local" variable scope declarations. ?

1076


What is perl dbi?

898


Distinguish my and local?

999


What are the advantages and disadvantages of perl language?

918