for loop example in perl
Example: perl for loop
#!/usr/bin/perl
use warnings;
use strict;
my @c = (1..6);
for(my $i = 0; $i <= $#c; $i++){
print("$c[$i] \n");
}
#!/usr/bin/perl
use warnings;
use strict;
my @c = (1..6);
for(my $i = 0; $i <= $#c; $i++){
print("$c[$i] \n");
}