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

What are prefix dereferencer?

921


How to read from a pipeline with Perl

1046


Write the program to process a list of numbers.

993


Explain what is STDIN, STDOUT and STDERR?

1038


What are perl array functions?

1111


How to read multi lines from a file in perl?

922


What does file test operators do in perl?

916


Write a program to decode the data in the form using cgi programming

1045


Write syntax to add two arrays together in perl?

928


What are scalars in perl?

964


Explain ivalue in perl?

983


What are scalar data and scalar variables?

1124


What are stdin, stdout and stderr?

1117


How many types of variable in perl?

1075


How interpreter is used in perl?

951