|
A type of loop
statement in programming
that performs pre-defined tasks while in the process
of doing something else.
For example, in Perl,
you may use code similar to the below, which is opening the file
"file.txt" and while going through each of the lines
in the file, printing them if they contain any letters.
open (INPUT, "<file.txt");
while (<INPUT>) {
if ($_ =~ /[a-zA-Z]/) {
print "$_";
}
}
close (INPUT); |
Also see: Do, Loop,
Programming definitions
|
|
| Resolved | Were you able to locate the answer to your questions? |
|
|