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 / ram nivas verma

What is the difference between the 'for' & 'foreach' loops? I know that they can be used interchangeably then what is the purpose of keeping them separate? Can anyone suggest me a good url which can tell the difference between two?

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You want to empty an array. How would you do that?

961


How to close a directory in perl?

977


How and what are closures implemented in perl?

946


Explain split function in perl?

1037


Why Perl aliases are considered to be faster than references?

997


Which functions in perl allows you to include a module file. State their differences.

1002


“Perl regular expressions match the longest string possible”. What is the name of this match?

981


Which feature of perl provides code reusability?

1043


What is the use of strict?

991


Why to use perl scripting?

1062


What are the steps involved in configuring a server using cgi programming?

936


How does a “grep” function perform?

1091


How interpreter is used in perl?

988


Can you add two arrays together?

981


Perl regular expressions are greedy" what does this mean?

963