Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Foreach

A type of loop statement in programming that performs pre-defined tasks while or until a pre-determined condition is met. For example, in Perl you may use a foreach loop similar to the below example that goes through each of the elements of an array, printing everything in the array.

foreach $value (@value) {
  print "$value";
}

Also see: Do, For, Loop, Programming definitions, While

 

Index

Category:
Dictionary

Related Pages:
F - Definitions

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope