for my $newline (@lines) { printf $newline; # print the contents of the filled array }
This seems confusingly verbose to me. Why not simply
print @lines;
There's no need for printf, for an explicit loop or for a lexical scalar. TIMTOWTDI, but there is clarity in simplicity.
In reply to Re^2: iterative foreach loop
by hippo
in thread iterative foreach loop
by hchana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |