- or download this
# In the configuration section...
my @Toggles = ('on', 'off');
# In some loop in the code...
$Toggles[$flip = !$flip]
- or download this
my @BGColors = ('#dddddd', '#ffffff');
...
</tr>
};
}
- or download this
# To cycle through any number of elements...
my @Cheers = ('hip', 'hip', 'hoo', 'ray');
...
for (1..12){
print "$Cheers[$flip = ++$flip % 4]\n";
}