1. Computing

Perl Control Structures - The For Loop

From Kirk Brown, About.com GuideJanuary 15, 2006

Perl's for loop is another control structure that allows you step through a block of code based on a specific logical expression. We've already discussed using Perl's foreach loop to step through arrays in an earlier tutorial, but foreach is not the only control structure you can use in your Perl scripts. The for loop is very useful in situations where you need to repeat a block of code a specific number of times.
Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Top Related Searches control structures

©2013 About.com. All rights reserved.