sub SetRandomBGColor { my @colorset = qw( aqua white yellow lime ); my $color = $colorset[rand(@colorset)]; print ""; } # This could then be used to do something like: # # #