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

Chop removes the last character of string completely and returns that last character. While chomp removes the last character if it is new line.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List all the features of perl programming?

952


Why does Perl not have overloaded functions?

1104


What is the difference between perl array and perl hash?

1174


List the files in current directory sorted by size ?

1028


What are stdin, stdout and stderr?

1209


How can you use Perl warnings and what is the importance to use them?

1024


What is epoch time in perl?

986


How do you turn on the perl warnings?

967


Mention how many ways you can express string in Perl?

1076


Differentiate use and require?

1003


What is the use of –w?

967


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1194


How do you set environment variables in perl?

1107


Explain what is STDIN, STDOUT and STDERR?

1084


what is the function of Return Value?

1124