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

How can I display all array element in which each element will display on next line in perl ?

983


List the data types that Perl can handle?

1116


Differentiate use and require?

999


What is an interpolation in perl?

1044


How will you open a file in a write-only mode in perl?

986


What does last statement do in perl?

1066


How many ways can we express string in Perl?

1013


What does perl do in linux?

988


Give an example of the -i and 0s option usage.

940


Differentiate between arrays and list in perl.

1030


Explain arrays in perl.

982


How to deleting an existing file in perl programming?

949


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

1042


What does this symbol mean '->'?

1077


Write an example explaining the use of symbol tables.

999