The proper way is to use an array:
my @colors = qw/ green blue yellow/; for my $color (reverse @colors) { print "$color<br>"; }
See perlintro and perldata for more information.
In reply to Re: unsure how to use variable
by moritz
in thread unsure how to use variable
by dgoroski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |