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 is stdin in perl?

961


Can we load binary extension dynamically?

937


Demonstrate subroutines in perl with a simple example.

855


Write syntax to use grep function?

968


In Perl, what is grep function used for?

1073


How to read a file into a hash array?

1044


What is the use of now constructor in perl?

968


What is a perl references?

923


You want to print the contents of an entire array. How would you do that?

960


What is the difference between use and require in perl?

859


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

924


We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?

2473


What does 'do' statement do in perl?

992


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

897


What are the logical operators used for small scale operations?

958