F
Fatted
Consider code snippit:
my @array = qw(first second third fourth);
for(@array)
{
print $_."\n";
}
Which prints to stdout:
first
second
third
fourth
Now try:
my @array = qw(first second third fourth);
my $i;
for($i = 0, @array, $i++)
{
print $_."\n";
}
This prints:
1
first
second
third
fourth
0
What are the 1 and 0 values?
my @array = qw(first second third fourth);
for(@array)
{
print $_."\n";
}
Which prints to stdout:
first
second
third
fourth
Now try:
my @array = qw(first second third fourth);
my $i;
for($i = 0, @array, $i++)
{
print $_."\n";
}
This prints:
1
first
second
third
fourth
0
What are the 1 and 0 values?