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 for & foreach, exec &
system?

Answer Posted / satish kumar golukonda

for and foreach works alike.
But for uses condition expression, where as foreach works on
ranges, contineous indexing.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the qq{ } operator do?

957


Explain perl. When do you use perl for programming?

880


Which guidelines by Perl modules must be followed?

1022


What are the benefits of perl in using it as a web-based application?

904


How do you turn on the perl warnings?

921


What are the arguments and what do they mean in perl programming?

1003


What is “grep” function in perl?

1007


Explain socket programming in perl?

918


Which feature of perl provides code reusability?

998


How to read multi lines from a file in perl?

926


How to convert arrays into a string in perl?

949


Can inheritance be used in perl? Explain with the help of an example.

994


What is the purpose of “_file_ literal” and “_line_ literal” in perl?

918


How do I pass a command line argument in perl?

982


How would you ensure the re-use and maximum readability of your perl code?

938