Oh, you really want to go forwards but have the output appear backwards?my $idx = $#array; while ($idx--) { print "$array[$idx]\n"; }
my $output = ''; for my $elem (@array) { $output = "$elem\n" . $output; } $output .= "\n"; print $output;
Cheers - L~R
In reply to Re: For Loops and Reversing output
by Limbic~Region
in thread For Loops and Reversing output
by brusimm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |