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 / devinder kumar

chop will indiscriminately remove (and return) the last
character passed to it, while chomp will only remove the
end of record marker (generally, "\n"), and return the
number of characters so removed.

Is This Answer Correct ?    40 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is goto statement in perl?

941


Explain splicing of arrays?

920


What does cgi program store?

918


What is the purpose of redo statement?

1017


Write a program to decode the data in the form using cgi programming

1045


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

998


What does the’$_’ symbol mean?

1007


You want to empty an array. How would you do that?

910


What are the various perl data types based on the context?

939


Explain the meaning of subroutine?

974


Difference between the variables in which chomp function work ?

1072


What are scalars?

989


What is use of β€˜->’ symbol?

1008


How can memory be managed in Perl?

1056


What is the different between array and hash in perl programming?

930