Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Perl Programming

Tutorial: Boxes - Ranges.

 

We can test ranges of values for i and j.

We grow weary of red and white.

1. Top bit


Big

Make the top four lines green.

Top four rows

2. Napier Triangle


Big

Make the lower left triangle red.

Napier Triangle

3. Thick stripe


Big

Make a thick vertical stripe.

Thick vertical stripe

4. Thick diagonal stripe


Big

Make a thick diagonal stripe.

Thick diagonal stripe

5. Thick diagonal stripe


Big

We take this exercise just a little too far.

Make a thick diagonal cross.

Thick diagonal stripe