in reply to Error while taking 'Scalar of scalar'
You might want my $randcolor = $colors[ rand @colors ]; instead.
-Paul