or the more readablefor (1 .. $#temp) { print DATAFILEOUT $temp[$_]; }my $temp_length = @temp; for my $current_array_index ( 1 .. ($temp_length - 1) ){ print DATAFILEOUT $temp[$current_array_index]; }
What in the world would make you think that second example is more readable than the first?
Not that I would go to all that trouble anyway...
Now, that's readable! ;-)print DATAFILEOUT @temp[1..$#temp];
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Skip a line
by sauoq
in thread Skip a line
by lisaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |