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 / satish kumar golukonda

for and foreach works alike.
But for uses condition expression, where as foreach works on
ranges, contineous indexing.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between exec and system?

1087


How do I send e-mail from a Perl/CGI program on a Unix system?

1009


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

946


How to copy a file in perl?

991


What does the’$_’ symbol mean?

1007


What is the importance of perl warnings? How do you turn them on?

1041


what are the strategies followed for multiple form interaction in cgi programs?

948


How will you declare a variable in perl?

968


Explain lists and ivalue?

952


What are some common methods to all handles in perl?

923


How to get help for perl?

981


Explain ivalue?

1006


Differentiate use and require?

945


How to close a file in perl?

949


How can you call a subroutine and identify a subroutine?

987