M
Mark Hobley
In my professional perl programming guide, some of the examples put the
variable to be used as an iterator in void context before the loop. For
example:
$l;
for ($l = 0; $l < 10; $l++) {
print $l;
}
I am curious as to what reasons there are for doing this, because there
does not appear to be any mention of it anywhere within the book.
Mark.
variable to be used as an iterator in void context before the loop. For
example:
$l;
for ($l = 0; $l < 10; $l++) {
print $l;
}
I am curious as to what reasons there are for doing this, because there
does not appear to be any mention of it anywhere within the book.
Mark.