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 / devinder kumar

chop will indiscriminately remove (and return) the last
character passed to it, while chomp will only remove the
end of record marker (generally, "\n"), and return the
number of characters so removed.

Is This Answer Correct ?    40 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does `$result = f() .. g()' really return?

1104


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

828


Write a program that explains the symbolic table clearly.

917


what are the steps involved in reading a cgi script on the server?

884


Distinguish my and local?

927


How can you create anonymous subroutines?

875


Write a program to decode the data in the form using cgi programming

1002


What is perl scripting?

885


What does file test operators do in perl?

869


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

829


Demonstrate subroutines in perl with a simple example.

823


How to open a directory in perl?

1039


What is the difference between localtime() and gmtime() functions?

973


How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

2863


What is the use of 'ne' operator?

943