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 "stderr()"?

956


How to determine strings length in perl?

902


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

862


How to connect with sqlserver from perl and how to display database table info?

904


Explain substr function in perl?

959


How do you set environment variables in perl?

973


How to code in perl to implement the tail function in unix?

882


What is perl unshift array function?

944


What is it meants by '$_'?

858


Enlist the advantages of using c over perl?

861


Mention what is cpan?

951


What is the use of 'ne' operator?

923


How will you declare a variable in perl?

918


Does Perl have reference type?

893


How will you get the count of parameters passed to a perl subroutine?

883