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

Chop and Chomp are two very similar functions. Both of them
are used to delete symbols from the tail of the given
string. While both work with string and list parameters,
Chop deletes any ending symbol Chomp deletes only specified
substring from the end. If you pass list to any of these
two, all list elements will get processed and the return
value would be the result of last operation.

Is This Answer Correct ?    22 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many loop control keywords are there in perl?

935


How to copy a file in perl?

980


Explain different types of perl operators.

933


What is perl pop array function?

938


What happens in dereferencing?

1033


How to sort arrays in perl?

1026


what is the difference between java and cgi?

1071


How to concatenate strings with perl?

862


How to print escaping characters inside a string in perl?

898


What is the use of now constructor in perl?

967


What does delete function do in perl?

981


How many types of primary data structures in Perl and what do they mean?

1409


How to implement a stack in Perl?

1017


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

935


How can the user execute a long command repeatedly without typing it again and again?

929