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 q (single q) operator in perl?

1089


Which has highest precedence in between list and terms? Explain?

865


What is the main function of cookie server?

1075


Define print() function in perl?

911


Explain use of ‘my’ keyword in perl?

935


How to read file into hash array ?

1101


Explain arrays in perl.

937


What are scalars in perl?

957


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

901


What are the different string manipulation operators in perl?

912


What is the use of –w?

934


How to deleting an existing file in perl programming?

905


Why -w argument is used with perl programs?

975


How to prevent file truncation in perl?

1014


Can inheritance be used in perl?

994