Home arrow Perl Programming arrow Perl 101 (Part 3) - Looping The Loop

Perl 101 (Part 3) - Looping The Loop

Part 3 in our continuing series on the popular scripting language, Perl. This week's article teaches you more about Perl's controlstructures - including the FOR and WHILE loops - and also introduces you toPerl's array variables.

  1. Perl 101 (Part 3) - Looping The Loop
  2. While You Were Sleeping...
  3. ...Or Until You Wake Up
  4. Dos And Don'ts
  5. For Pete's Sake!
  6. Every Comedian Needs An Exit
  7. Grade School
  8. Playing With Friends
  9. So Many Choices...
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 5
June 15, 2000

print this article


Last time, we introduced you to Perl's basic control structure - the"if-else" family of conditional statements - and also taught you a littlemore about scalar variables. This week, we're going to proceed a littlefurther down that same road, with a look at the different types of loopsyou can use in Perl, an introduction to a new type of variable, and atongue-in-cheek look at the things modern managers do in the interests of afatter bottom line.

As always, we'll begin with a definition for those of you coming at thisseries from a non-programming background. In geek-talk, a "loop" isprecisely what you would think - a programming construct that allows you toexecute a set of statements over and over again, until a pre-definedcondition is met.

Every programming language worth its salt uses loops - and, incidentally,so do quite a few shampoo manufacturers. Think lather-rinse-repeat, andyou'll see what we mean...

>>> More Perl Programming Articles          >>> More By Vikram Vaswani and Harish Kamath, (c) Melonfire

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates


Dev Shed Tutorial Topics: