#!/usr/bin/perl

use strict;


main();

sub main {

    
    my $value = 10;
    my $ctr = 0;
    print "Making a loop through adding +1 to 10 until we are >=20\n\n";

    #for loops have 3 conditions.  setting a variable, defining a test, specifying an increment. 
    for (my $ctr = 0; $ctr+$value < 20; ++$ctr) {
	
	my $sum = $ctr+$value;
	print "The current values are: $ctr + $value ------- Sum: $sum \n";

    }

    print "We stopped before the sum was 20....\n";

}

