# Basic syntax:
for ( init; condition; increment ) {
code to run;
}
# Example usage:
for (my $i = 5; $i < 10; $i += 1) {
print "Value of i: $i
";
}
for ($i=0; $i<#whatever#; $i++){
#your code
}
#!/usr/bin/perl
use warnings;
use strict;
my @c = (1..6);
for(my $i = 0; $i <= $#c; $i++){
print("$c[$i]
");
}