You might want my $randcolor = $colors[ rand @colors ]; instead.
-Paul
In reply to Re: Error while taking 'Scalar of scalar' by jettero in thread Error while taking 'Scalar of scalar' by cool