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

chop is used remove last character,chomp function removes
only line endings.

Is This Answer Correct ?    80 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read from a pipeline with Perl

1042


Explain the different types of data perl can handle.

896


What is cpan ? What are the modules coming under this?

921


Explain what is perl language?

923


What are the various flags/arguments that can be used while executing a perl program?

886


How the interpreter is used in Perl?

946


Explain the meaning of closure in perl.

1025


Explain the default scope of variables in perl?

942


Explain 'grep' function.

976


How to determine strings length in perl?

960


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

929


How and what are closures implemented in perl?

881


What is the difference between exec and system?

1085


how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.

2057


You want to connect to sql server through perl. How would you do that?

928