Tuesday, June 26, 2007

Perl Basics: For Loops

for (starting assignment; test condition; increment)
{
code to repeat
}

Example:

for ($count=1; $count<11; $count++)
{
print 'cool\n';
}

No comments: