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

chop removes the last character and returns the character
chopped
Chomp removes any trailing string that corresponds to the
current value of $/ and returns number of characters removed

Is This Answer Correct ?    11 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is perl? What is the basic command to print a string in perl?

922


What does a die() function do in perl?

1034


How do I sort a hash by the hash key?

966


What is the difference between single (') and double (") quote in a string in perl?

1110


How will you open a file in a write-only mode in perl?

991


Explain perl.

984


Explain the difference between die and exit in perl?

927


Mention what is cpan?

1079


Explain goto name?

981


Why should I use the -w argument with my Perl programs?

1008


What is warn function in perl?

1022


Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?

1152


Explain subroutine?

976


Explain what is the scalar data and scalar variables in Perl?

985


What $! In perl?

1025