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 / raj

And i have read some where i could not remember the source
but foreach is faster than the for loop.
Thanks,
Raj

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an interpolation in perl?

1044


How to convert strings into an array in perl?

1059


In CPAN module, name an instance you use.

1004


What is cpan ? What are the modules coming under this?

970


How to read a single line from a file in perl?

1013


What is the use of -n and -p options?

1114


What is the purpose of redo statement?

1059


What syntax is used for grep() function?

1262


Which has highest precedence in between list and terms? Explain?

920


What is the use of "stderr()"?

1065


What does `$result = f() .. g()' really return?

1291


Explain what is STDIN, STDOUT and STDERR?

1081


Is there any way to add two arrays together?

1027


What are the logical operators used for small scale operations?

1002


Explain string comparison operators in perl.

1050