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

How to close a file in perl?

935


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1015


What are prefix dereferencer?

918


What are the purpose of close(), getc() and read() functions?

875


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

927


What is the syntax used in Perl grep function?

1030


What is the use of strict?

919


“Perl regular expressions match the longest string possible”. What is the name of this match?

936


How can you use Perl warnings and what is the importance to use them?

962


Which operator in perl is used for the concatenation of two strings?

996


What is the importance of perl warnings?

1132


What does cgi program store?

905


What is -> symbol in perl?

1005


What is it meants by '$_'?

892


List all the features of perl programming?

891