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

Why to use perl scripting?

938


How do I print the entire contents of an array with Perl?

913


What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

901


Explain chomp?

873


What is an interpolation in perl?

942


Explain gmtime() function in perl?

920


Explain the meaning of subroutine?

917


How to compare two strings in perl?

896


What are the various file operations in perl. Explain with example.

895


Does Perl have objects? If yes, then does it force you to use objects? If no, then why?

915


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

908


Explain socket programming in perl?

869


Which feature of perl provides code reusability?

945


What is perl pop array function?

890


What is perl unshift array function?

963