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

Perl regular expressions are greedy" what does this mean?

968


What are the different ways to run cgi?

1012


Explain grooving and shortening of arrays and splicing of arrays?

951


How to start perl in interactive mode?

1116


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

1013


What rules must be followed by modules in perl.

1040


What is v-strings?

1143


What is the function of cgiwrap in cgi programming?

977


How to read a file into a hash array?

1095


Why we use CGI?

2592


What is the function of virtual documents in cgi programs?

1013


How many types of operators are used in the Perl?

1074


You want to add two arrays together. How would you do that?

938


How do I replace every character in a file with a comma?

1043


Explain perl.

984