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 / maheswar reddy

The For and Foreach loop works quite same......but
Foreach loop is best way to access dynamic arrays.If we don't know the size of the array then we can't mention the range for the "FOR LOOP" in this case for loop is best

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where do we require ‘chomp’ and what does it mean?

993


Why to use perl?

957


There are some duplicate entries in an array and you want to remove them. How would you do that?

913


Is there any way to add two arrays together?

974


what are the strategies followed for multiple form interaction in cgi programs?

950


When do you use perl programming?

1005


Differentiate use and require?

956


What are the advantages and disadvantages of perl language?

918


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

881


Mention what is cpan?

1022


What is automatic error handling in perl?

1059


Explain about the applications of perl?

977


Why do we use "use strict" in perl?

979


How do I generate a list of all .html files in a directory?

961


What is a chop() function in perl?

1021