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

What is the use of -w, -t and strict in Perl?

1050


How do I debug a perl program?

1028


Distinguish my and local?

1032


What is “grep” function in perl?

1069


What is v-strings?

1141


What does this symbol mean '->'?

1078


What is posix in perl?

994


Explain goto name?

981


Explain a tell function in perl?

1014


What is the use of –w?

966


Define perl scripting?

1029


Is perl a case sensitive language?

1159


If you want to empty an array then how would you do that?

1171


How does polymorphism work in perl?

965


What does the’$_’ symbol mean?

1052